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;