From c3a1f56f77f5f378c9e5116b71fb682acb65cfcb Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 4 Aug 2015 13:34:28 +0200 Subject: [PATCH] Resetting signals on freerdp_connect. --- libfreerdp/core/freerdp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libfreerdp/core/freerdp.c b/libfreerdp/core/freerdp.c index 2ff10ba13..619916cab 100644 --- a/libfreerdp/core/freerdp.c +++ b/libfreerdp/core/freerdp.c @@ -73,6 +73,12 @@ BOOL freerdp_connect(freerdp* instance) rdp = instance->context->rdp; settings = instance->settings; + + if (rdp) + rdp->disconnect = FALSE; + + ResetEvent(instance->context->abortEvent); + instance->context->codecs = codecs_new(instance->context); IFCALLRET(instance->PreConnect, status, instance); @@ -547,6 +553,9 @@ BOOL freerdp_context_new(freerdp* instance) if (ret) return TRUE; + +out_error_abort_event: + CloseHandle(context->abortEvent); out_error_create_event: CloseHandle(context->channelErrorEvent); out_error_description: