From 008f62869ef50ced2383a7700f0e13fd8df588ed Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 15 Jan 2025 18:41:56 -0500 Subject: [PATCH] fix --- src/abacus-ts/websocket/lib/reconnectingWebsocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abacus-ts/websocket/lib/reconnectingWebsocket.ts b/src/abacus-ts/websocket/lib/reconnectingWebsocket.ts index d69dfdb2c..ee4a009b5 100644 --- a/src/abacus-ts/websocket/lib/reconnectingWebsocket.ts +++ b/src/abacus-ts/websocket/lib/reconnectingWebsocket.ts @@ -86,7 +86,7 @@ export class ReconnectingWebSocket { // can happen if we rapidly switch websockets maybe ?? if (id !== this.currentId || this.isDead) return; - // after x seconds, reset our failure counter + // after x seconds, reset our failure counter if we're still alive setTimeout(() => { if (id !== this.currentId || this.isDead || !this.isActive()) return; this.numberOfFailedAttempts = 0;