Skip to content

Commit

Permalink
transports(daily): make sure we don't send data if client is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Jul 2, 2024
1 parent d1ca0c5 commit be14ce4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pipecat/transports/services/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ def set_callbacks(self, callbacks: DailyCallbacks):
self._callbacks = callbacks

async def send_message(self, frame: DailyTransportMessageFrame):
if not self._client:
return

future = self._loop.create_future()
self._client.send_app_message(
frame.message,
Expand Down

0 comments on commit be14ce4

Please sign in to comment.