From 5bc1e41109aea28d77375f5ec87a452092b5a939 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 20 Jan 2015 11:24:58 +0100 Subject: [PATCH] Using freerdp_channels_disconnect now. --- client/X11/xf_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index de592ca22..c9d561d1b 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -788,6 +788,7 @@ int _xf_error_handler(Display* d, XErrorEvent* ev) static void xf_post_disconnect(freerdp* instance) { xfContext* xfc; + rdpChannels* channels = channels = instance->context->channels; if (!instance || !instance->context || !instance->settings) return; @@ -1638,7 +1639,7 @@ void* xf_thread(void *param) } /* Close the channels first. This will signal the internal message pipes * that the threads should quit. */ - freerdp_channels_close(channels, instance); + freerdp_channels_disconnect(channels, instance); if (async_input) { @@ -1838,6 +1839,7 @@ static void xfreerdp_client_free(freerdp* instance, rdpContext* context) if (context->channels) { + freerdp_channels_close(context->channels, instance); freerdp_channels_free(context->channels); context->channels = NULL; }