From 4a724379fcd59aa20e2b203bc8df9a8c3eca8ae7 Mon Sep 17 00:00:00 2001 From: okue Date: Wed, 21 Jan 2026 23:58:49 +0900 Subject: [PATCH] refactor(user_mute): remove unnecessary _bot_speaking assignment in _handle_bot_stopped_speaking The _bot_speaking flag does not need to be set in this method, so the redundant assignment has been removed. --- .../mute_until_first_bot_complete_user_mute_strategy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pipecat/turns/user_mute/mute_until_first_bot_complete_user_mute_strategy.py b/src/pipecat/turns/user_mute/mute_until_first_bot_complete_user_mute_strategy.py index 20fe7016a..c19499e07 100644 --- a/src/pipecat/turns/user_mute/mute_until_first_bot_complete_user_mute_strategy.py +++ b/src/pipecat/turns/user_mute/mute_until_first_bot_complete_user_mute_strategy.py @@ -51,6 +51,5 @@ class MuteUntilFirstBotCompleteUserMuteStrategy(BaseUserMuteStrategy): return not self._first_speech_handled async def _handle_bot_stopped_speaking(self, frame: BotStoppedSpeakingFrame): - self._bot_speaking = False if not self._first_speech_handled: self._first_speech_handled = True