Discard disconnected node from unchecked_node_pool

This commit is contained in:
Lee Miller 2024-09-07 19:10:37 +03:00
parent 77125b9d59
commit 958f202cef
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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: