From 1cdbd49dff434e8efb3ac42a90ca244bc1a958e9 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 7 Nov 2016 10:29:53 -0800 Subject: [PATCH] GUACAMOLE-115: Explicitly close connection when disconnect instruction is received. --- guacamole-common-js/src/main/webapp/modules/Client.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js b/guacamole-common-js/src/main/webapp/modules/Client.js index 060f46026..45ebfe303 100644 --- a/guacamole-common-js/src/main/webapp/modules/Client.js +++ b/guacamole-common-js/src/main/webapp/modules/Client.js @@ -849,6 +849,13 @@ Guacamole.Client = function(tunnel) { }, + "disconnect" : function handleDisconnect(parameters) { + + // Explicitly tear down connection + guac_client.disconnect(); + + }, + "dispose": function(parameters) { var layer_index = parseInt(parameters[0]);