Commit 3d93102d authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Expire timers on expiry time too, not just after.

parent 2305f3c0
......@@ -107,7 +107,9 @@ static DWORD CALLBACK SERVICE_Loop( SERVICETABLE *service )
}
if ( s->flags & SERVICE_USE_TIMEOUT )
if ( timercmp( &s->expire, &curTime, < ) )
if ((s->expire.tv_sec < curTime.tv_sec) ||
((s->expire.tv_sec == curTime.tv_sec) &&
(s->expire.tv_usec <= curTime.tv_usec)))
{
SERVICE_AddTimeval( &s->expire, s->rate );
callback = s->callback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment