Skip to content

Commit 624ac05

Browse files
GUACAMOLE-288: Force disconnect on error to avoid dead browser windows.
1 parent 57467e7 commit 624ac05

File tree

1 file changed

+2
-0
lines changed
  • guacamole-common-js/src/main/webapp/modules

1 file changed

+2
-0
lines changed

guacamole-common-js/src/main/webapp/modules/Client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,8 @@ Guacamole.Client = function(tunnel) {
14041404
if (guac_client.onerror)
14051405
guac_client.onerror(new Guacamole.Status(code, reason));
14061406

1407+
if (guac_client.ondisconnect) guac_client.ondisconnect();
1408+
14071409
guac_client.disconnect();
14081410

14091411
},

0 commit comments

Comments
 (0)