GUAC-559: Notify when tunnel is disconnected. Ignore explicit disconnection status from Guacamole.Client.

This commit is contained in:
Michael Jumper committed 2014-03-23 18:34:30 -07:00
1 parent adff91af2b
commit 18369f277f
2 files changed
+7 -8

No files matched your search

@@ -890,16 +890,9 @@ GuacUI.Client.attach = function(guac) {
break;
// Disconnecting
// Disconnecting / disconnected are handled by tunnel instead
case 4:
GuacUI.Client.showStatus(null, "Disconnecting...");
GuacUI.Client.titlePrefix = "[Disconnecting...]";
break;
// Disconnected
case 5:
GuacUI.Client.showStatus("Disconnected", "Guacamole has been manually disconnected. Reload the page to reconnect.");
GuacUI.Client.titlePrefix = "[Disconnected]";
break;
// Unknown status code