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