Fix #1408 (duplicate connections to some hosts), got from chan
This commit is contained in:
parent
4e7cd784ad
commit
e1d5604674
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user