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 untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 2 additions and 0 deletions

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):
if not i.fullyEstablished:
del i.objectsNewToMe[hashid]
except KeyError: