Added automatic reconnect if freerdp_connect fails due to timeout.
@@ -1485,6 +1485,12 @@ static DWORD WINAPI xf_client_thread(LPVOID param)
status = freerdp_connect(instance);
xfc = (xfContext*) instance->context;
+ if (!status)
+ {
+ if (freerdp_get_last_error(instance->context) == FREERDP_ERROR_CONNECT_TRANSPORT_FAILED)
+ status = freerdp_reconnect(instance);
+ }
+
if (!status)
{
if (freerdp_get_last_error(instance->context) ==
