Fix duplicate TTSStoppedFrame in TTS service timeout path

This commit is contained in:
Mark Backman
2026-03-27 12:07:37 -04:00
parent a8bfc23d3a
commit 70df9d3fe4

View File

@@ -1403,6 +1403,7 @@ class TTSService(AIService):
logger.trace(f"{self} time out on audio context {context_id}")
if should_push_stop_frame and self._push_stop_frames:
await self.push_frame(TTSStoppedFrame(context_id=context_id))
should_push_stop_frame = False
break
if should_push_stop_frame and self._push_stop_frames: