From 3910aeb4decc16d5895ed7974afbae67201047f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 15 Oct 2024 17:47:29 -0700 Subject: [PATCH] transports(daily): don't send messages if not joined --- src/pipecat/transports/services/daily.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py index 7c537bd53..f28efdcb8 100644 --- a/src/pipecat/transports/services/daily.py +++ b/src/pipecat/transports/services/daily.py @@ -241,7 +241,7 @@ class DailyTransportClient(EventHandler): 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