This commit is contained in:
Yuriy Yuriev
2026-05-20 15:07:45 +07:00
+2 -2
View File
@@ -190,7 +190,7 @@ class TwitchIRCClient:
while duration == 0 or (datetime.now() - start_time).seconds < duration:
# === ПРОВЕРКА АКТИВНОСТИ ===
if is_active and not is_active():
if is_active and not is_active():
logger.info(f"⏸️ #{self.channel} paused, waiting for resume...")
await self.disconnect()
while is_active and not is_active():
@@ -198,7 +198,7 @@ class TwitchIRCClient:
logger.info(f"▶️ #{self.channel} resumed, reconnecting")
await self.connect()
last_message_time = datetime.now()
continue
continue
# Нет соединения — ждём перед повтором
if not self._connected: