Fix #1408 (duplicate connections to some hosts), got from chan

This commit is contained in:
Dmitri Bogomolov 2018-12-18 18:10:29 +02:00
parent 4e7cd784ad
commit e1d5604674
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 1 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class BMConnectionPool(object):
del self.inboundConnections[connection.destination.host] del self.inboundConnections[connection.destination.host]
except KeyError: except KeyError:
pass pass
connection.close() connection.handle_close()
def getListeningIP(self): def getListeningIP(self):
if BMConfigParser().safeGet("bitmessagesettings", "onionhostname").endswith(".onion"): if BMConfigParser().safeGet("bitmessagesettings", "onionhostname").endswith(".onion"):
@ -202,7 +202,6 @@ class BMConnectionPool(object):
self.inboundConnections.values() + self.inboundConnections.values() +
self.outboundConnections.values() self.outboundConnections.values()
): ):
i.set_state("close")
# FIXME: rating will be increased after next connection # FIXME: rating will be increased after next connection
i.handle_close() i.handle_close()