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

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