From ed71fdedb245f45a99f9176803bde18f385f7ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 12 Jul 2019 14:16:14 +0200 Subject: [PATCH] client: Don't use the queue attribute directly. --- pantalaimon/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pantalaimon/client.py b/pantalaimon/client.py index d44aef2..932d95e 100644 --- a/pantalaimon/client.py +++ b/pantalaimon/client.py @@ -242,7 +242,7 @@ class PanClient(AsyncClient): dict_devices[device.user_id][device.id] = device_dict message = UpdateDevicesMessage(self.user_id, dict_devices) - await self.queue.put(message) + await self.send_message(message) async def send_update_device(self, device): """Send a single device to the UI thread to be updated.""" @@ -387,7 +387,7 @@ class PanClient(AsyncClient): self.user_id, event.sender, event.from_device, event.transaction_id ) - await self.queue.put(message) + await self.send_message(message) elif isinstance(event, KeyVerificationKey): sas = self.key_verifications.get(event.transaction_id, None) @@ -401,7 +401,7 @@ class PanClient(AsyncClient): self.user_id, device.user_id, device.id, sas.transaction_id, emoji ) - await self.queue.put(message) + await self.send_message(message) elif isinstance(event, KeyVerificationMac): sas = self.key_verifications.get(event.transaction_id, None)