From b9fcaa5215cd91e41527df6ebcd2f6a765b972d0 Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Fri, 24 Sep 2021 09:18:28 -0700 Subject: [PATCH] Cancel handshake timer on connection shutdown (#1410) --- squeaknode/network/connection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/squeaknode/network/connection.py b/squeaknode/network/connection.py index cd1fafd6..2e0c6560 100644 --- a/squeaknode/network/connection.py +++ b/squeaknode/network/connection.py @@ -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()