Skip to content

Commit

Permalink
revert task cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Dec 24, 2024
1 parent cc8fc79 commit fda801b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions livekit-agents/livekit/agents/pipeline/pipeline_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@ def on_human_start_of_speech(self, ev: vad.VADEvent) -> None:
self._last_recv_start_of_speech_time = time.perf_counter()
if self.validating:
assert self._validating_task is not None
self._validating_task.cancel()

def on_human_end_of_speech(self, ev: vad.VADEvent) -> None:
self._speaking = False
Expand Down

0 comments on commit fda801b

Please sign in to comment.