From 2aed542e61020ed3ad2d719e90266038f3d30f35 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 22 Aug 2026 11:36:41 +0200 Subject: [PATCH] Get path_entry directly in _outbound --- RNS/Transport.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 40752229..ce636417 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1330,11 +1330,10 @@ class Transport: # Check if we have a known path for the destination in the path table if packet.packet_type != RNS.Packet.ANNOUNCE and packet.destination.type != RNS.Destination.PLAIN and packet.destination.type != RNS.Destination.GROUP and packet.destination_hash in Transport.path_table: - with Transport.path_table_lock: - if not packet.destination_hash in Transport.path_table: - RNS.log(f"Dropped packet since path table entry disappeared during outbound processing", RNS.LOG_WARNING) - return False - else: path_entry = Transport.path_table[packet.destination_hash] + path_entry = Transport.path_table.get(packet.destination_hash) + if not path_entry: + RNS.log(f"Dropped packet since path table entry disappeared during outbound processing", RNS.LOG_WARNING) + return False outbound_interface = path_entry[IDX_PT_RVCD_IF]