diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index b8228f06..9b2cce43 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -589,6 +589,8 @@ empth_request_shutdown(void) int empth_wait_for_signal(void) { + loc_BlockThisThread(); + /* Get the MUTEX semaphore, wait the number of MS */ WaitForSingleObject(hShutdownEvent, INFINITE);