mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix timeout array
This commit is contained in:
+2
-2
@@ -72,8 +72,8 @@ class WebShareWSControl {
|
||||
this.log("cannot connect, giving up");
|
||||
return;
|
||||
}
|
||||
let timeoutArr = [0, 5, 5, 15, 30, 60, 300, 3600];
|
||||
let timeout = 60;
|
||||
let timeoutArr = [0, 0, 5, 5, 15, 30, 60, 300, 3600];
|
||||
let timeout = timeoutArr[timeoutArr.length-1];
|
||||
if (this.reconnectTimes < timeoutArr.length) {
|
||||
timeout = timeoutArr[this.reconnectTimes];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user