Skip to content

Commit

Permalink
transports(daily): don't send messages if not joined
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Oct 16, 2024
1 parent 8b4362c commit 9862898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipecat/transports/services/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def set_callbacks(self, callbacks: DailyCallbacks):
self._callbacks = callbacks

async def send_message(self, frame: TransportMessageFrame | TransportMessageUrgentFrame):
if not self._client:
if not self._joined or self._leaving:
return

participant_id = None
Expand Down

0 comments on commit 9862898

Please sign in to comment.