From d062074b5a7231864474b0755c683220f40193cc Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Mon, 28 Nov 2016 12:36:29 +0100 Subject: [PATCH] Clear UI.connected state variable right away Keeping it set for the disconnecting state was causing an issue where the controlbar could be hidden without any way to open it, when a session disconnects too quickly. --- app/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index 97f5226e..196e5fce 100644 --- a/app/ui.js +++ b/app/ui.js @@ -433,11 +433,11 @@ var UI; UI.showStatus(msg); break; case 'disconnecting': + UI.connected = false; document.getElementById("noVNC_transition_text").innerHTML = _("Disconnecting..."); document.documentElement.classList.add("noVNC_disconnecting"); break; case 'disconnected': - UI.connected = false; UI.showStatus(_("Disconnected")); break; default: