From faedcd0210c810be925d64ed77172ef4433ad7eb Mon Sep 17 00:00:00 2001 From: James Kinsman Date: Mon, 8 Aug 2022 14:22:41 +0100 Subject: Allow continued reconnect tries Currently novnc will only retry once (assuming the server is unavailable) and then stop (as the detail from is unclean, usually "failed to connect"). Minor change will continue to reconnect every reconnect_delay seconds until either reconnected or user intervention cancels the attempt. --- app/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index 95f938d..fe62ede 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1133,7 +1133,9 @@ const UI = { } else { UI.showStatus(_("Failed to connect to server"), 'error'); } - } else if (UI.getSetting('reconnect', false) === true && !UI.inhibitReconnect) { + } + // If reconnecting is allowed process it now + if (UI.getSetting('reconnect', false) === true && !UI.inhibitReconnect) { UI.updateVisualState('reconnecting'); const delay = parseInt(UI.getSetting('reconnect_delay')); -- cgit v1.2.1