mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 07:54:52 +00:00
Use put_nowait instead of put
This commit is contained in:
parent
2cf930bea0
commit
463ef828c2
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ class Session:
|
||||||
msg_id = msg.body.msg_id
|
msg_id = msg.body.msg_id
|
||||||
else:
|
else:
|
||||||
if self.client is not None:
|
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:
|
if msg_id in self.results:
|
||||||
self.results[msg_id].value = getattr(msg.body, "result", msg.body)
|
self.results[msg_id].value = getattr(msg.body, "result", msg.body)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue