This commit is contained in:
Yuriy Yuriev
2026-05-20 14:54:09 +07:00
parent 429e605b47
commit 30bae667e3
+4 -2
View File
@@ -184,8 +184,10 @@ class TwitchIRCClient:
while duration == 0 or (datetime.now() - start_time).seconds < duration: 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("⏸️ Task paused/stopped, disconnecting...") logger.info("⏸️ IRC paused, waiting for resume...")
break while is_active and not is_active():
await asyncio.sleep(2)
logger.info("▶️ IRC resumed")
# Нет соединения — ждём перед повтором # Нет соединения — ждём перед повтором
if not self._connected: if not self._connected: