I just wanna wait somewhere else
This commit is contained in:
parent
a525018fb1
commit
557ff002b0
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue