From 338173802d5a0e21515036512180d421c7d3544a Mon Sep 17 00:00:00 2001 From: JRG Date: Tue, 18 Aug 2026 13:11:57 +0300 Subject: [PATCH] Transport: fix destination_hash check in pending_discovery_prs --- RNS/Transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index c523ed46..26698cda 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1110,8 +1110,9 @@ class Transport: if path_requests: with Transport.discovery_pr_tx_lock: + queued_destinations = [entry[0] for entry in Transport.pending_discovery_prs] for destination_hash in path_requests: - if not destination_hash in Transport.pending_discovery_prs: + if destination_hash not in queued_destinations: if not len(Transport.pending_discovery_prs) >= Transport.max_queued_discovery_prs: Transport.pending_discovery_prs.append([destination_hash, path_requests[destination_hash]])