Skip to content

Commit

Permalink
handle isConnecting and reconnect properly (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler authored Jan 2, 2025
1 parent 7a6b3d2 commit 734e5aa
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,8 @@ export const setupSubstream = async (
} catch (err) {
cursorManager.stopStalenessCheck();
console.log("Substream connection error:", err);
if (!isConnecting) {
isConnecting = true;
handleReconnect(attemptCount + 1);
}
isConnecting = false;
handleReconnect(attemptCount + 1);
}
};

Expand Down

0 comments on commit 734e5aa

Please sign in to comment.