diff --git a/windows/winhandl.c b/windows/winhandl.c index b15d1f26..193f24d7 100644 --- a/windows/winhandl.c +++ b/windows/winhandl.c @@ -171,8 +171,10 @@ static DWORD WINAPI handle_input_threadfunc(void *param) break; WaitForSingleObject(ctx->ev_from_main, INFINITE); - if (ctx->done) + if (ctx->done) { + SetEvent(ctx->ev_to_main); break; /* main thread told us to shut down */ + } } if (povl)