GUACAMOLE-484: Do not flush frame if connection closed mid-frame.

This commit is contained in:
Michael Jumper 2018-01-22 12:24:07 -08:00
parent 61c16a89d2
commit 822a6c6b9d

View File

@ -841,10 +841,12 @@ static int guac_rdp_handle_connection(guac_client* client) {
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_UNAVAILABLE, guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_UNAVAILABLE,
"Connection closed."); "Connection closed.");
/* Flush frame */ /* Flush frame only if successful */
guac_common_display_flush(rdp_client->display); else {
guac_client_end_frame(client); guac_common_display_flush(rdp_client->display);
guac_socket_flush(client->socket); guac_client_end_frame(client);
guac_socket_flush(client->socket);
}
} }