diff options
Diffstat (limited to 'router/router.c')
-rw-r--r-- | router/router.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/router/router.c b/router/router.c index 0497a1d2..a0b554f4 100644 --- a/router/router.c +++ b/router/router.c @@ -64,7 +64,9 @@ BOOL APIENTRY DllMain(HINSTANCE UNUSED(module), DWORD reason, void* UNUSED(reser break; case DLL_THREAD_ATTACH: + break; case DLL_THREAD_DETACH: + althrd_thread_detach(); break; case DLL_PROCESS_DETACH: @@ -84,6 +86,8 @@ BOOL APIENTRY DllMain(HINSTANCE UNUSED(module), DWORD reason, void* UNUSED(reser if(LogFile && LogFile != stderr) fclose(LogFile); LogFile = NULL; + + althrd_deinit(); break; } return TRUE; |