diff --git a/async-bot.py b/async-bot.py index 44cb119..c5b4210 100644 --- a/async-bot.py +++ b/async-bot.py @@ -239,12 +239,13 @@ class AsyncBotManager: delay: float = 0.25, ): proxy = ProxyConnector.from_url(proxy_url) if proxy_url else None - await self.ready_event.wait() try: async with ClientSession(connector=proxy, timeout=TIMEOUT) as http: async with AsyncSimpleClient(http_session=http) as sio: await sio.connect(f"{self.base}/socket.io") - print(f"Writer {bot_index} connected") + print(f"Writer {bot_index} connected, waiting...") + await self.ready_event.wait() + print(f"Writer {bot_index} running") offset = 0 while not self._shutdown: diff = list(self.difference.items())