Skip to content

Commit

Permalink
transports(base_output): fix duplicate push_frame()
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Dec 22, 2024
1 parent 9c105e2 commit 1d4bab5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pipecat/transports/base_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ async def _sink_frame_handler(self, frame: Frame):
await self._set_camera_images(frame.images)
elif isinstance(frame, TransportMessageFrame):
await self.send_message(frame)
else:
await self.push_frame(frame)

async def _sink_clock_task_handler(self):
running = True
Expand All @@ -264,6 +262,9 @@ async def _sink_clock_task_handler(self):
await asyncio.sleep(wait_time)
await self._sink_frame_handler(frame)

# Also, push frame downstream in case anyone else needs it.
await self.push_frame(frame)

self._sink_clock_queue.task_done()
except asyncio.CancelledError:
break
Expand Down

0 comments on commit 1d4bab5

Please sign in to comment.