Discard the disconnected node from unchecked_node_pool

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

View File

@ -396,6 +396,7 @@ class ConnectionBase(threading.Thread):
logging.warning( logging.warning(
'Disconnecting v%s node %s with nonce %s', 'Disconnecting v%s node %s with nonce %s',
version.protocol_version, self.host_print, nonce_print) version.protocol_version, self.host_print, nonce_print)
shared.unchecked_node_pool.discard((self.host, self.port))
self.status = 'disconnecting' self.status = 'disconnecting'
self.send_queue.put(None) self.send_queue.put(None)
else: else: