This commit is contained in:
Casey 2024-07-11 05:47:01 +03:00
parent 0ce64231c7
commit 6cd8dc1198
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class WorkerManager:
cookie = bot_index, self._restarts[bot_index]
self.workers.add(cookie)
await sio.send("unsubscribe")
await sio.emit("unsubscribe")
try:
batch = 0
@ -98,6 +98,7 @@ class WorkerManager:
self.workers.remove(cookie)
sio.on("connect", writer_itself)
sio.on("unsubscribed", print)
await sio.connect(self.base.replace("http", "ws"))
await sio.wait()