diff options
author | James Kinsman <VibroAxe@users.noreply.github.com> | 2022-08-08 14:22:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 14:22:41 +0100 |
commit | faedcd0210c810be925d64ed77172ef4433ad7eb (patch) | |
tree | e45ff6e0f0a440d1234f761bf60f00595348b291 | |
parent | cdfb33665195eb9a73fb00feb6ebaccd1068cd50 (diff) | |
download | novnc-faedcd0210c810be925d64ed77172ef4433ad7eb.tar.gz |
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.
-rw-r--r-- | app/ui.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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')); |