mirror of https://github.com/FreeRDP/FreeRDP
Resolve thread not exiting when remote lost or disconnected.
This commit is contained in:
parent
2ff19597dc
commit
f91a4d0b6e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue