From 326beecb0303a3276a74694967986b5d9b4a4682 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 27 Sep 2024 20:23:04 -0700 Subject: [PATCH] GUACAMOLE-377: Fix regression causing RDP connections to always reconnect after closing. --- src/protocols/rdp/rdp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/protocols/rdp/rdp.c b/src/protocols/rdp/rdp.c index fc74e65d2..a6e7720d3 100644 --- a/src/protocols/rdp/rdp.c +++ b/src/protocols/rdp/rdp.c @@ -613,11 +613,9 @@ static int guac_rdp_handle_connection(guac_client* client) { break; /* Handle any queued FreeRDP events (this may result in RDP messages - * being sent), aborting if FreeRDP event handling fails */ - if (!guac_rdp_handle_events(rdp_client)) { + * being sent), aborting later if FreeRDP event handling fails */ + if (!guac_rdp_handle_events(rdp_client)) wait_result = -1; - break; - } /* Test whether the RDP server is closing the connection */ int connection_closing;