mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +00:00
Merge branch 'asyncio-dev' of https://github.com/pyrogram/pyrogram into asyncio-dev
This commit is contained in:
commit
3dce23524d
1 changed files with 2 additions and 2 deletions
|
|
@ -384,8 +384,8 @@ class Session:
|
|||
await asyncio.wait_for(self.results[msg_id].event.wait(), timeout)
|
||||
except asyncio.TimeoutError:
|
||||
pass
|
||||
|
||||
result = self.results.pop(msg_id).value
|
||||
finally:
|
||||
result = self.results.pop(msg_id).value
|
||||
|
||||
if result is None:
|
||||
raise TimeoutError
|
||||
|
|
|
|||
Loading…
Reference in a new issue