CONNECT_TRANSPORT_FAILED in transport_check_fds
If TRANSPORT_LAYER_CLOSED was detected in transport_check_fds check if there is already a connection error set, otherwise set FREERDP_ERROR_CONNECT_TRANSPORT_FAILED to allow proper reconnect or abort handling. Signed-off-by: Armin Novak <armin.novak@thincast.com>
This commit is contained in:
parent
7d252cdc8e
commit
2391a1528b
@ -1009,6 +1009,8 @@ int transport_check_fds(rdpTransport* transport)
|
||||
if (transport->layer == TRANSPORT_LAYER_CLOSED)
|
||||
{
|
||||
WLog_Print(transport->log, WLOG_DEBUG, "transport_check_fds: transport layer closed");
|
||||
if (freerdp_get_last_error(transport->context) == FREERDP_ERROR_SUCCESS)
|
||||
freerdp_set_last_error_log(transport->context, FREERDP_ERROR_CONNECT_TRANSPORT_FAILED);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user