Don't send invs to unestablished connections

This commit is contained in:
Peter Šurda 2017-05-31 23:34:06 +02:00
parent 18988ae2e6
commit 4c17a18006
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -38,6 +38,8 @@ class BMConnectionPool(object):
for i in self.inboundConnections.values() + self.outboundConnections.values():
if not isinstance(i, network.bmproto.BMProto):
continue
if not i.fullyEstablished:
continue
try:
del i.objectsNewToMe[hashid]
except KeyError: