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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user