Fixed thread handling.
This commit is contained in:
parent
733a39779c
commit
d7d5869cb6
@ -541,6 +541,9 @@ void rdpsnd_server_context_free(rdpsnd_server_context* context)
|
||||
SetEvent(rdpsnd->StopEvent);
|
||||
WaitForSingleObject(rdpsnd->thread, INFINITE);
|
||||
|
||||
CloseHandle(rdpsnd->StopEvent);
|
||||
CloseHandle(rdpsnd->thread);
|
||||
|
||||
if (rdpsnd->rdpsnd_channel)
|
||||
WTSVirtualChannelClose(rdpsnd->rdpsnd_channel);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user