mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +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
|
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…
Reference in a new issue