Commit 1f11ad82 authored by Alexandre Julliard's avatar Alexandre Julliard

advapi32: Use exponential backoff when waiting for a service to start.

parent 4889a0ed
......@@ -1620,7 +1620,7 @@ static BOOL service_wait_for_startup(SC_HANDLE hService)
TRACE("%p\n", hService);
for (i=0; i<30; i++)
for (i=0; i<20; i++)
{
status.dwCurrentState = 0;
r = QueryServiceStatus(hService, &status);
......@@ -1632,7 +1632,7 @@ static BOOL service_wait_for_startup(SC_HANDLE hService)
break;
}
r = FALSE;
Sleep(1000);
Sleep(100 * i);
}
return r;
}
......
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