mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Use PingDelayDisconnect instead
This commit is contained in:
parent
5e6361defc
commit
ad6cfcd165
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue