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

This commit is contained in:
Alexandre Julliard 2007-12-19 15:07:20 +01:00
parent 4889a0edf7
commit 1f11ad8288
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}