fix the indentation and notification timeout
This commit is contained in:
parent
5d7e66bd87
commit
5c7b2c3fae
|
|
@ -1133,11 +1133,12 @@ const UI = {
|
||||||
}
|
}
|
||||||
const elapsedTime = Date.now() - UI.firstReconnectTime;
|
const elapsedTime = Date.now() - UI.firstReconnectTime;
|
||||||
|
|
||||||
// Check if we've exceeded the max reconnect time
|
// Check if we've exceeded the max reconnect time
|
||||||
if ((Date.now() - UI.firstReconnectTime) >= maxTime) {
|
if ((Date.now() - UI.firstReconnectTime) >= maxTime) {
|
||||||
// hiding the previous status message
|
// hiding the previous status message
|
||||||
UI.hideStatus();
|
UI.hideStatus();
|
||||||
UI.showStatus(_("Maximum reconnect attempts reached. Failed to connect to the server."), 'error', 1000*60*240); // Show for 4 hours
|
// 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);
|
||||||
UI.updateVisualState('disconnected');
|
UI.updateVisualState('disconnected');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue