From 5a17a83f36c8d1da4ea635ab6656770c514fca93 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sat, 14 Dec 2024 10:31:50 +0000 Subject: [PATCH] async client --- src/socketio/async_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketio/async_client.py b/src/socketio/async_client.py index 5fd8daa..f3a6b84 100644 --- a/src/socketio/async_client.py +++ b/src/socketio/async_client.py @@ -578,7 +578,7 @@ class AsyncClient(base_client.BaseClient): 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)