mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Merge branch 'asyncio-dev' of https://github.com/pyrogram/pyrogram into asyncio-dev
This commit is contained in:
commit
3dce23524d
@ -384,8 +384,8 @@ class Session:
|
|||||||
await asyncio.wait_for(self.results[msg_id].event.wait(), timeout)
|
await asyncio.wait_for(self.results[msg_id].event.wait(), timeout)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
pass
|
pass
|
||||||
|
finally:
|
||||||
result = self.results.pop(msg_id).value
|
result = self.results.pop(msg_id).value
|
||||||
|
|
||||||
if result is None:
|
if result is None:
|
||||||
raise TimeoutError
|
raise TimeoutError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user