Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Jan 15, 2025
1 parent 3328ddc commit 008f628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abacus-ts/websocket/lib/reconnectingWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 008f628

Please sign in to comment.