mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 08:36:28 +00:00
[host] Windows: poll more freqently for a stopped LG process
This commit is contained in:
parent
e3f97e384b
commit
bf5481446b
@ -511,9 +511,13 @@ VOID WINAPI SvcMain(DWORD dwArgc, LPTSTR *lpszArgv)
|
|||||||
CloseHandle(m);
|
CloseHandle(m);
|
||||||
|
|
||||||
if (!running && GetInteractiveSessionID() != 0)
|
if (!running && GetInteractiveSessionID() != 0)
|
||||||
|
{
|
||||||
Launch();
|
Launch();
|
||||||
|
/* avoid being overly agressive in restarting */
|
||||||
|
Sleep(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (WaitForSingleObject(ghSvcStopEvent, 1000) == WAIT_OBJECT_0)
|
if (WaitForSingleObject(ghSvcStopEvent, 100) == WAIT_OBJECT_0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user