Change transport layer before tsg_connect, not after

This commit is contained in:
Christian Plattner 2014-03-22 15:57:09 +01:00
parent 3739e02584
commit 8fac6400b5

View File

@ -543,10 +543,10 @@ BOOL transport_connect(rdpTransport* transport, const char* hostname, UINT16 por
status = tcp_connect(transport->TcpOut, settings->GatewayHostname, settings->GatewayPort);
}
transport->layer = TRANSPORT_LAYER_TSG;
if (status)
status = transport_tsg_connect(transport, hostname, port);
transport->layer = TRANSPORT_LAYER_TSG;
}
else
{