2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 08:45:13 +00:00

Use put_nowait instead of put

This commit is contained in:
Dan
2018-06-14 03:25:15 +02:00
parent 2cf930bea0
commit 463ef828c2

View File

@@ -259,7 +259,7 @@ class Session:
msg_id = msg.body.msg_id
else:
if self.client is not None:
self.client.updates_queue.put(msg.body)
self.client.updates_queue.put_nowait(msg.body)
if msg_id in self.results:
self.results[msg_id].value = getattr(msg.body, "result", msg.body)