fix irc
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user