Fixed freerdp_disconnect and freerdp_reconnect.

This commit is contained in:
Armin Novak 2015-01-12 13:44:34 +01:00
parent e0139fc4d8
commit e3df1d3d5b

View File

@ -317,8 +317,7 @@ BOOL freerdp_disconnect(freerdp* instance)
rdpRdp* rdp;
rdp = instance->context->rdp;
transport_disconnect(rdp->transport);
rdp_client_disconnect(rdp);
update_post_disconnect(instance->update);
IFCALL(instance->PostDisconnect, instance);
@ -334,7 +333,8 @@ BOOL freerdp_disconnect(freerdp* instance)
BOOL freerdp_reconnect(freerdp* instance)
{
return rdp_client_reconnect(instance->context->rdp);
BOOL rc = rdp_disconnect(instance);
return rc && rdp_connect(instance);
}
BOOL freerdp_shall_disconnect(freerdp* instance)