libfreerdp-core: fail more gracefully when transport thread dies

This commit is contained in:
Marc-André Moreau 2014-06-01 10:46:43 -04:00
parent c5e4c74bb6
commit 1ac2350ec5
1 changed files with 4 additions and 1 deletions

View File

@ -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;
{
}
}
}