Don't send invs to unestablished connections
This commit is contained in:
parent
18988ae2e6
commit
4c17a18006
|
@ -38,6 +38,8 @@ class BMConnectionPool(object):
|
||||||
for i in self.inboundConnections.values() + self.outboundConnections.values():
|
for i in self.inboundConnections.values() + self.outboundConnections.values():
|
||||||
if not isinstance(i, network.bmproto.BMProto):
|
if not isinstance(i, network.bmproto.BMProto):
|
||||||
continue
|
continue
|
||||||
|
if not i.fullyEstablished:
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
del i.objectsNewToMe[hashid]
|
del i.objectsNewToMe[hashid]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Reference in New Issue
Block a user