From 4c17a1800648da0bcca5d1aca5302d361bc18e17 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 31 May 2017 23:34:06 +0200 Subject: [PATCH] Don't send invs to unestablished connections --- src/network/connectionpool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/connectionpool.py b/src/network/connectionpool.py index 447e8170..517b3c98 100644 --- a/src/network/connectionpool.py +++ b/src/network/connectionpool.py @@ -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: