Fixed thread handling.

This commit is contained in:
Armin Novak 2013-09-05 13:38:35 +02:00
parent 4c7d60b9ab
commit 3b54ba3449

View File

@ -419,7 +419,9 @@ static BOOL audin_server_close(audin_server_context* context)
SetEvent(audin->stopEvent);
WaitForSingleObject(audin->thread, INFINITE);
CloseHandle(audin->thread);
CloseHandle(audin->stopEvent);
audin->thread = NULL;
audin->stopEvent = NULL;
}
if (audin->audin_channel)