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:
Norbert Federa 2019-12-27 14:41:24 +01:00 committed by GitHub
commit 2df3eb0455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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)