Resolve thread not exiting when remote lost or disconnected.

This commit is contained in:
Mathew Winters 2018-11-14 15:25:38 +13:00
parent 2ff19597dc
commit f91a4d0b6e
1 changed files with 2 additions and 0 deletions

View File

@ -619,6 +619,8 @@ disconnect:
if (async_input && inputThread)
{
wMessageQueue* input_queue = freerdp_get_message_queue(instance, FREERDP_INPUT_MESSAGE_QUEUE);
MessageQueue_PostQuit(input_queue, 0);
WaitForSingleObject(inputThread, INFINITE);
CloseHandle(inputThread);
}