From 24c93e4de7c3864e77cd21fafa57c848b3e96898 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 10 Feb 2016 11:20:52 +0100 Subject: [PATCH] Resetting abortEvent only on connect and reconnect. --- libfreerdp/core/connection.c | 2 -- libfreerdp/core/freerdp.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libfreerdp/core/connection.c b/libfreerdp/core/connection.c index 5047aadfe..286643e10 100644 --- a/libfreerdp/core/connection.c +++ b/libfreerdp/core/connection.c @@ -312,8 +312,6 @@ BOOL rdp_client_disconnect(rdpRdp* rdp) { BOOL status; - ResetEvent(rdp->context->abortEvent); - if (rdp->settingsCopy) { freerdp_settings_free(rdp->settingsCopy); diff --git a/libfreerdp/core/freerdp.c b/libfreerdp/core/freerdp.c index 91eae992d..07bb43736 100644 --- a/libfreerdp/core/freerdp.c +++ b/libfreerdp/core/freerdp.c @@ -383,6 +383,7 @@ BOOL freerdp_reconnect(freerdp* instance) BOOL status; rdpRdp* rdp = instance->context->rdp; + ResetEvent(instance->context->abortEvent); status = rdp_client_reconnect(rdp); return status;