From e1d560467455485b52b00fccfa0c25707356b8e6 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Tue, 18 Dec 2018 18:10:29 +0200 Subject: [PATCH] Fix #1408 (duplicate connections to some hosts), got from chan --- src/network/connectionpool.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network/connectionpool.py b/src/network/connectionpool.py index e599cdfb..fb662fe0 100644 --- a/src/network/connectionpool.py +++ b/src/network/connectionpool.py @@ -93,7 +93,7 @@ class BMConnectionPool(object): del self.inboundConnections[connection.destination.host] except KeyError: pass - connection.close() + connection.handle_close() def getListeningIP(self): if BMConfigParser().safeGet("bitmessagesettings", "onionhostname").endswith(".onion"): @@ -202,7 +202,6 @@ class BMConnectionPool(object): self.inboundConnections.values() + self.outboundConnections.values() ): - i.set_state("close") # FIXME: rating will be increased after next connection i.handle_close()