From a69f2bc638e2064038128e8eedad221247acf58b Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sat, 7 Sep 2024 19:10:37 +0300 Subject: [PATCH] Discard the disconnected node from unchecked_node_pool --- minode/connection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/minode/connection.py b/minode/connection.py index 9b634dc..df3fa72 100644 --- a/minode/connection.py +++ b/minode/connection.py @@ -396,6 +396,7 @@ class ConnectionBase(threading.Thread): logging.warning( 'Disconnecting v%s node %s with nonce %s', version.protocol_version, self.host_print, nonce_print) + shared.unchecked_node_pool.discard((self.host, self.port)) self.status = 'disconnecting' self.send_queue.put(None) else: