Repository: incubator-guacamole-client
Updated Branches:
  refs/heads/master 3f43653a1 -> d598ce18b


GUACAMOLE-115: Explicitly close connection when disconnect instruction is 
received.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/1cdbd49d
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/1cdbd49d
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/1cdbd49d

Branch: refs/heads/master
Commit: 1cdbd49dff434e8efb3ac42a90ca244bc1a958e9
Parents: 3f43653
Author: Michael Jumper <[email protected]>
Authored: Mon Nov 7 10:29:53 2016 -0800
Committer: Michael Jumper <[email protected]>
Committed: Mon Nov 7 10:29:53 2016 -0800

----------------------------------------------------------------------
 guacamole-common-js/src/main/webapp/modules/Client.js | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/1cdbd49d/guacamole-common-js/src/main/webapp/modules/Client.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js 
b/guacamole-common-js/src/main/webapp/modules/Client.js
index 060f460..45ebfe3 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]);

Reply via email to