We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29256e5 commit 1663d4aCopy full SHA for 1663d4a
1 file changed
src/socketio/client.py
@@ -179,6 +179,8 @@ def wait(self):
179
while True:
180
self.eio.wait()
181
self.sleep(1) # give the reconnect task time to start up
182
+ if self.eio.state != 'connected': # reconnect task finished while `self.sleep(1)` was executing
183
+ continue
184
if not self._reconnect_task:
185
break
186
self._reconnect_task.join()
0 commit comments