transports(daily): make sure we don't send data if client is closed
This commit is contained in:
@@ -199,6 +199,9 @@ class DailyTransportClient(EventHandler):
|
|||||||
self._callbacks = callbacks
|
self._callbacks = callbacks
|
||||||
|
|
||||||
async def send_message(self, frame: DailyTransportMessageFrame):
|
async def send_message(self, frame: DailyTransportMessageFrame):
|
||||||
|
if not self._client:
|
||||||
|
return
|
||||||
|
|
||||||
future = self._loop.create_future()
|
future = self._loop.create_future()
|
||||||
self._client.send_app_message(
|
self._client.send_app_message(
|
||||||
frame.message,
|
frame.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user