mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-core: fail more gracefully when transport thread dies
This commit is contained in:
parent
c5e4c74bb6
commit
1ac2350ec5
|
@ -1320,6 +1320,7 @@ static void* transport_client_thread(void* arg)
|
|||
transport_get_read_handles(transport, (HANDLE*) &handles, &nCount);
|
||||
|
||||
status = WaitForMultipleObjects(nCount, handles, FALSE, INFINITE);
|
||||
|
||||
if (transport->layer == TRANSPORT_LAYER_CLOSED)
|
||||
{
|
||||
rdpRdp* rdp = (rdpRdp*) transport->rdp;
|
||||
|
@ -1332,7 +1333,9 @@ static void* transport_client_thread(void* arg)
|
|||
break;
|
||||
|
||||
if (!freerdp_check_fds(instance))
|
||||
break;
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue