Skip to content

Commit

Permalink
Update agent_output.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Jul 23, 2024
1 parent a6c18bc commit 7692b9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def _synthesize_task(self, handle: SynthesisHandle) -> None:
co = _stream_synthesis_task(handle._speech_source, handle)

synth = asyncio.create_task(co)
synth.add_done_callback(lambda _: handle._buf_ch.close)
synth.add_done_callback(lambda _: handle._buf_ch.close())
try:
_ = await asyncio.wait(
[synth, handle._interrupt_fut], return_when=asyncio.FIRST_COMPLETED
Expand Down

0 comments on commit 7692b9d

Please sign in to comment.