Lower maximum interval to 1 minute.

pull/628/head
Jesse Selover 2024-05-08 02:51:15 -07:00
parent af48bea179
commit 817ee3158e
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ export default class UnavailableModalUiHandler extends ModalUiHandler {
else { else {
clearInterval(this.reconnectTimer); clearInterval(this.reconnectTimer);
this.reconnectInterval *= 2; this.reconnectInterval *= 2;
if (this.reconnectInterval >= 300000) { if (this.reconnectInterval >= 60000) {
this.reconnectInterval = 300000; // 300 seconds (5 minutes) maximum delay. this.reconnectInterval = 60000; // 1 minute maximum delay.
} }
this.reconnectTimer = setInterval(this.tryReconnect, this.reconnectInterval); this.reconnectTimer = setInterval(this.tryReconnect, this.reconnectInterval);
} }