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.
This commit is contained in:
@@ -51,6 +51,5 @@ class MuteUntilFirstBotCompleteUserMuteStrategy(BaseUserMuteStrategy):
|
|||||||
return not self._first_speech_handled
|
return not self._first_speech_handled
|
||||||
|
|
||||||
async def _handle_bot_stopped_speaking(self, frame: BotStoppedSpeakingFrame):
|
async def _handle_bot_stopped_speaking(self, frame: BotStoppedSpeakingFrame):
|
||||||
self._bot_speaking = False
|
|
||||||
if not self._first_speech_handled:
|
if not self._first_speech_handled:
|
||||||
self._first_speech_handled = True
|
self._first_speech_handled = True
|
||||||
|
|||||||
Reference in New Issue
Block a user