mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #5803 from nfedera/nf_add_transport_layer_closed_check
transport: check if layer was set to closed
This commit is contained in:
commit
2df3eb0455
|
@ -1005,6 +1005,12 @@ int transport_check_fds(rdpTransport* transport)
|
|||
if (!transport)
|
||||
return -1;
|
||||
|
||||
if (transport->layer == TRANSPORT_LAYER_CLOSED)
|
||||
{
|
||||
WLog_Print(transport->log, WLOG_DEBUG, "transport_check_fds: transport layer closed");
|
||||
return -1;
|
||||
}
|
||||
|
||||
dueDate = now + transport->settings->MaxTimeInCheckLoop;
|
||||
|
||||
if (transport->haveMoreBytesToRead)
|
||||
|
|
Loading…
Reference in New Issue