diff --git a/services/irc_service.py b/services/irc_service.py index 1967a88..7de440b 100644 --- a/services/irc_service.py +++ b/services/irc_service.py @@ -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: