Fixed thread handling.

This commit is contained in:
Armin Novak 2013-09-05 13:39:15 +02:00
parent 733a39779c
commit d7d5869cb6
1 changed files with 3 additions and 0 deletions

View File

@ -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);