From 8e46aecfb0bf58a7edd80e12e339868b9916c686 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 7 Aug 2023 01:40:03 +0300 Subject: [PATCH] Fix closing inbound connections if sendoutgoingconnections is False --- src/network/connectionpool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/connectionpool.py b/src/network/connectionpool.py index 2ec09d88..4823b3c8 100644 --- a/src/network/connectionpool.py +++ b/src/network/connectionpool.py @@ -334,7 +334,7 @@ class BMConnectionPool(object): self._lastSpawned = time.time() else: - for i in self.connections(): + for i in self.outboundConnections.values(): # FIXME: rating will be increased after next connection i.handle_close()