aboutsummaryrefslogtreecommitdiffstats
path: root/router/router.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-10 12:10:58 -0800
committerChris Robinson <[email protected]>2018-03-10 12:10:58 -0800
commitdac93794491a9219ebdc6815244db76244f45b09 (patch)
tree2e821c0a7b68c594c0f084c8b1033bdb1a8b554a /router/router.c
parenta6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (diff)
Add methods to clean up althrd and altss data
Diffstat (limited to 'router/router.c')
-rw-r--r--router/router.c4
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;