diff --git a/services/irc_service.py b/services/irc_service.py index 9656a3f..6a670c2 100644 --- a/services/irc_service.py +++ b/services/irc_service.py @@ -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: