diff --git a/src/main.ts b/src/main.ts index ad9a99b..b35c494 100644 --- a/src/main.ts +++ b/src/main.ts @@ -181,6 +181,9 @@ ws.on("close", (event: CloseEvent) => { }/${maxReconnectAttempts}` ); ws = reconnect(ws); + if (ws.readyState === WebSocket.OPEN) { + return; + } reconnectAttempts++; }, delay); } else {