Browse Source

fix Client::wait unexpected return after success reconnect

pull/1407/head
Arseny 5 months ago
committed by GitHub
parent
commit
1663d4ac93
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/socketio/client.py

2
src/socketio/client.py

@ -179,6 +179,8 @@ class Client(base_client.BaseClient):
while True: while True:
self.eio.wait() self.eio.wait()
self.sleep(1) # give the reconnect task time to start up self.sleep(1) # give the reconnect task time to start up
if self.eio.state != 'connected': # reconnect task finished while `self.sleep(1)` was executing
continue
if not self._reconnect_task: if not self._reconnect_task:
break break
self._reconnect_task.join() self._reconnect_task.join()

Loading…
Cancel
Save