Cancel handshake timer on connection shutdown (#1410)

This commit is contained in:
Jonathan Zernik 2021-09-24 09:18:28 -07:00 committed by GitHub
parent a16dd32549
commit b9fcaa5215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,7 @@ class Connection(object):
def shutdown(self):
logger.debug("Peet shutting down...")
self.peer.stop()
self.handshake_timer.cancel()
self.ping_timer.cancel()
self.pong_timer.cancel()