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