Reset ping check on ping-events only
This commit is contained in:
parent
bf736430a6
commit
9d0c588685
1 changed files with 6 additions and 5 deletions
|
|
@ -449,6 +449,7 @@ class Connection:
|
||||||
self._events.fire(packet_type, packet)
|
self._events.fire(packet_type, packet)
|
||||||
|
|
||||||
# Finally, reset the ping check
|
# Finally, reset the ping check
|
||||||
|
if packet_type == "ping-event":
|
||||||
logger.debug("Resetting ping check")
|
logger.debug("Resetting ping check")
|
||||||
if self._ping_check is not None:
|
if self._ping_check is not None:
|
||||||
self._ping_check.cancel()
|
self._ping_check.cancel()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue