We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf575a commit e05b21dCopy full SHA for e05b21d
pyhilo/websocket.py
@@ -310,6 +310,10 @@ async def async_connect(self) -> None:
310
raise CannotConnectError(err) from err
311
312
LOG.info(f"Connected to websocket server {self._api.endpoint}")
313
+
314
+ #Quick pause to prevent race condition
315
+ await asyncio.sleep(0.05)
316
317
self._watchdog.trigger()
318
for callback in self._connect_callbacks:
319
schedule_callback(callback)
0 commit comments