Reset ping check on ping-events only

This commit is contained in:
Joscha 2019-04-10 01:00:30 +00:00
parent bf736430a6
commit 9d0c588685

View file

@ -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()