transports(daily): make sure we don't send data if client is closed

This commit is contained in:
Aleix Conchillo Flaqué
2024-07-01 18:25:40 -07:00
parent d1ca0c5614
commit be14ce465d

View File

@@ -199,6 +199,9 @@ class DailyTransportClient(EventHandler):
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,