Tim Van Baak
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
src/socketio/async_client.py
-
src/socketio/client.py
|
@ -158,7 +158,7 @@ class AsyncClient(base_client.BaseClient): |
|
|
await self._handle_reconnect() |
|
|
await self._handle_reconnect() |
|
|
if self.eio.state == 'connected': |
|
|
if self.eio.state == 'connected': |
|
|
return |
|
|
return |
|
|
raise exceptions.ConnectionError(exc.args[0]) from None |
|
|
raise exceptions.ConnectionError(exc.args[0]) from exc |
|
|
|
|
|
|
|
|
if wait: |
|
|
if wait: |
|
|
try: |
|
|
try: |
|
|
|
@ -156,7 +156,7 @@ class Client(base_client.BaseClient): |
|
|
self._handle_reconnect() |
|
|
self._handle_reconnect() |
|
|
if self.eio.state == 'connected': |
|
|
if self.eio.state == 'connected': |
|
|
return |
|
|
return |
|
|
raise exceptions.ConnectionError(exc.args[0]) from None |
|
|
raise exceptions.ConnectionError(exc.args[0]) from exc |
|
|
|
|
|
|
|
|
if wait: |
|
|
if wait: |
|
|
while self._connect_event.wait(timeout=wait_timeout): |
|
|
while self._connect_event.wait(timeout=wait_timeout): |
|
|