From bed38cec713d2256c87cb324acfa46af9960bb54 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 29 Oct 2016 15:00:53 -0700 Subject: [PATCH] GUACAMOLE-117: Do not stop connection when the intent is to reconnect (originally broken by commit a64c3e0). --- src/protocols/rdp/rdp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/protocols/rdp/rdp.c b/src/protocols/rdp/rdp.c index 9dbf714f..e82e5260 100644 --- a/src/protocols/rdp/rdp.c +++ b/src/protocols/rdp/rdp.c @@ -850,10 +850,6 @@ static int guac_rdp_handle_connection(guac_client* client) { } - /* Kill client and finish connection */ - guac_client_stop(client); - guac_client_log(client, GUAC_LOG_INFO, "Internal RDP client disconnected"); - pthread_mutex_lock(&(rdp_client->rdp_lock)); /* Disconnect client and channels */ @@ -880,6 +876,10 @@ static int guac_rdp_handle_connection(guac_client* client) { guac_common_display_free(rdp_client->display); pthread_mutex_unlock(&(rdp_client->rdp_lock)); + + /* Client is now disconnected */ + guac_client_log(client, GUAC_LOG_INFO, "Internal RDP client disconnected"); + return 0; }