mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-23 02:51:26 +01:00
fix timeout array
This commit is contained in:
parent
414cd6bf0a
commit
7609909e6d
@ -72,8 +72,8 @@ class WebShareWSControl {
|
|||||||
this.log("cannot connect, giving up");
|
this.log("cannot connect, giving up");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let timeoutArr = [0, 5, 5, 15, 30, 60, 300, 3600];
|
let timeoutArr = [0, 0, 5, 5, 15, 30, 60, 300, 3600];
|
||||||
let timeout = 60;
|
let timeout = timeoutArr[timeoutArr.length-1];
|
||||||
if (this.reconnectTimes < timeoutArr.length) {
|
if (this.reconnectTimes < timeoutArr.length) {
|
||||||
timeout = timeoutArr[this.reconnectTimes];
|
timeout = timeoutArr[this.reconnectTimes];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user