mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Use PingDelayDisconnect instead
This commit is contained in:
parent
5e6361defc
commit
ad6cfcd165
@ -296,7 +296,7 @@ class Session:
|
|||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._send(functions.Ping(0), False)
|
self._send(functions.PingDelayDisconnect(0, self.PING_INTERVAL + 15), False)
|
||||||
except (OSError, TimeoutError):
|
except (OSError, TimeoutError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user