mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 10:42:23 +00:00
slight update to fix reconnections
This commit is contained in:
1 parent
995961749e
commit
c6b439bc88
1 file changed
+1
-1
@@ -321,7 +321,7 @@ class Localuser {
|
||||
this.ws = undefined;
|
||||
console.log("WebSocket closed with code " + event.code);
|
||||
if (
|
||||
(event.code > 1000 && event.code < 1016) ||
|
||||
(event.code > 1000 && event.code < 1016 && this.errorBackoff === 0) ||
|
||||
(wsCodesRetry.has(event.code) && this.errorBackoff === 0)
|
||||
) {
|
||||
this.errorBackoff++;
|
||||
|
||||
Reference in new issue
Block a user