diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index eb002b2e..0909b206 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -641,10 +641,7 @@ int empth_wait_for_signal(void) { loc_BlockThisThread(); - - WaitForSingleObject(hShutdownEvent, INFINITE); - - loc_RunThisThread(NULL); + loc_RunThisThread(hShutdownEvent); return 0; }