Resetting abortEvent only on connect and reconnect.

This commit is contained in:
Armin Novak 2016-02-10 11:20:52 +01:00
parent 35faa8b221
commit 24c93e4de7
2 changed files with 1 additions and 2 deletions

View File

@ -312,8 +312,6 @@ BOOL rdp_client_disconnect(rdpRdp* rdp)
{ {
BOOL status; BOOL status;
ResetEvent(rdp->context->abortEvent);
if (rdp->settingsCopy) if (rdp->settingsCopy)
{ {
freerdp_settings_free(rdp->settingsCopy); freerdp_settings_free(rdp->settingsCopy);

View File

@ -383,6 +383,7 @@ BOOL freerdp_reconnect(freerdp* instance)
BOOL status; BOOL status;
rdpRdp* rdp = instance->context->rdp; rdpRdp* rdp = instance->context->rdp;
ResetEvent(instance->context->abortEvent);
status = rdp_client_reconnect(rdp); status = rdp_client_reconnect(rdp);
return status; return status;