mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 13:34:54 +00:00
Fix ping request not awaiting
This commit is contained in:
parent
f76c654548
commit
a9ccbaca19
@ -324,7 +324,7 @@ class Session:
|
|||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._send(functions.PingDelayDisconnect(
|
await self._send(functions.PingDelayDisconnect(
|
||||||
0, self.WAIT_TIMEOUT + 10
|
0, self.WAIT_TIMEOUT + 10
|
||||||
), False)
|
), False)
|
||||||
except (OSError, TimeoutError, Error):
|
except (OSError, TimeoutError, Error):
|
||||||
|
Loading…
Reference in New Issue
Block a user