We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e46a0ca commit fece6d3Copy full SHA for fece6d3
1 file changed
src/iohook.cc
@@ -391,8 +391,10 @@ void stop() {
391
break;
392
}
393
394
+ // wait for hook thread clean exit
395
+ WaitForSingleObject(hook_thread, INFINITE);
396
+
397
#ifdef _WIN32
- // Create event handles for the thread hook.
398
CloseHandle(hook_thread);
399
DeleteCriticalSection(&hook_running_mutex);
400
DeleteCriticalSection(&hook_control_mutex);
0 commit comments