mirror of
https://github.com/anope/anope.git
synced 2026-07-01 03:56:39 +02:00
Don't forget to CloseHandle threads on win32, spotted by Attila
This commit is contained in:
@@ -53,6 +53,7 @@ int pthread_join(pthread_t thread, void **)
|
||||
{
|
||||
if (WaitForSingleObject(thread, INFINITE) == WAIT_FAILED)
|
||||
return -1;
|
||||
CloseHandle(thread);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user