From 51be88fbd83417c8d21d2ce74922faa401658cee Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 27 Oct 2026 10:51:05 +0100 Subject: [PATCH] Fixed unused path cull order --- RNS/Transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 13d9c3fd..a901f292 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1120,7 +1120,7 @@ class Transport: cull_count = len(unused_paths) - Transport.PATH_POOL_UNUSED_TARGET RNS.log(f"Culling {cull_count} never used path table entries to reach pool size target {Transport.PATH_POOL_UNUSED_TARGET}", RNS.LOG_DEBUG) if RNS.sl(RNS.LOG_DEBUG) else None unused_paths.sort() - for cull_entry in unused_paths[-cull_count:]: + for cull_entry in unused_paths[:cull_count]: stale_paths.append(cull_entry[1]) if check_unused: