From db7c5beea5ed33032d893fd2dfa1229cccf0e23d Mon Sep 17 00:00:00 2001 From: Ankit kumar yadav Date: Sun, 29 Mar 2026 23:56:02 +0530 Subject: [PATCH] fix the error --- app/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui.js b/app/ui.js index 6bf8618e..5b934588 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1125,7 +1125,7 @@ const UI = { reconnect() { UI.reconnectCallback = null; - const maxTime = UI.getSetting('reconnect_max_time') ?? 600000; // 20s - 20 * 1000 ms + const maxTime = UI.getSetting('reconnect_max_time') ?? 600000; // default to 10 minutes => 10 * 60 * 1000 ms // Initialize first reconnect time if it's the first attempt if (UI.firstReconnectTime === null) { @@ -1137,8 +1137,8 @@ const UI = { if ((Date.now() - UI.firstReconnectTime) >= maxTime) { // hiding the previous status message UI.hideStatus(); - // Showing this notification for long time, unless user will close this manually or reLaunch the VNC console - UI.showStatus(_("Maximum reconnect attempts reached. Failed to connect to the server."), 'error', Infinity); + // Showing this message for long time, because if the connection is unstable and user is not around to see the message when the connection is lost, they will be able to see it when they will come back. (Showing for 3 hours) + UI.showStatus(_("Maximum reconnect attempts reached. Failed to connect to the server."), 'error', 180*60*1000); UI.updateVisualState('disconnected'); return; }