diff --git a/chia/server/node_discovery.py b/chia/server/node_discovery.py index 7ac81c2a9cc2..24cfb1f38472 100644 --- a/chia/server/node_discovery.py +++ b/chia/server/node_discovery.py @@ -434,7 +434,7 @@ async def _connect_to_peers(self, random: Random) -> None: await asyncio.sleep(connect_peer_interval) # prune completed connect tasks - self.pending_task = set(filter(lambda t: not t.done(), self.pending_tasks)) + self.pending_tasks = set(filter(lambda t: not t.done(), self.pending_tasks)) except Exception as e: self.log.error(f"Exception in create outbound connections: {e}")