Fixed thread handling.
This commit is contained in:
parent
4c7d60b9ab
commit
3b54ba3449
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user