Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/socketio/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ async def _handle_eio_disconnect(self):
self.callbacks = {}
self._binary_packet = None
self.sid = None
if will_reconnect:
if will_reconnect and not self._reconnect_task:
self._reconnect_task = self.start_background_task(
self._handle_reconnect)

Expand Down
2 changes: 1 addition & 1 deletion src/socketio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def _handle_eio_disconnect(self):
self.callbacks = {}
self._binary_packet = None
self.sid = None
if will_reconnect:
if will_reconnect and not self._reconnect_task:
self._reconnect_task = self.start_background_task(
self._handle_reconnect)

Expand Down
Loading