Merge pull request #1 from TheLonestar1/new-human

fix irc
This commit is contained in:
TheLonestar1
2026-05-20 14:55:21 +07:00
committed by GitHub
+4 -2
View File
@@ -184,8 +184,10 @@ class TwitchIRCClient:
while duration == 0 or (datetime.now() - start_time).seconds < duration:
# === ПРОВЕРКА АКТИВНОСТИ ===
if is_active and not is_active():
logger.info("⏸️ Task paused/stopped, disconnecting...")
break
logger.info("⏸️ IRC paused, waiting for resume...")
while is_active and not is_active():
await asyncio.sleep(2)
logger.info("▶️ IRC resumed")
# Нет соединения — ждём перед повтором
if not self._connected: