Fix race asr problem
This commit is contained in:
@@ -205,7 +205,10 @@ class ConversationManager:
|
||||
self._current_assistant_text = ""
|
||||
|
||||
if was_interrupted:
|
||||
await self.set_state(ConversationState.INTERRUPTED)
|
||||
# A new user turn may already be active (LISTENING) when interrupted.
|
||||
# Avoid overriding it back to INTERRUPTED, which can stall EOU flow.
|
||||
if self.state != ConversationState.LISTENING:
|
||||
await self.set_state(ConversationState.INTERRUPTED)
|
||||
else:
|
||||
await self.set_state(ConversationState.IDLE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user