Fixed cull entry index

This commit is contained in:
Mark Qvist 2026-10-31 11:35:29 +01:00
parent 2ef855c892
commit 1ee89ad8d6
No known key found for this signature in database

View file

@ -1145,7 +1145,7 @@ class Transport:
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]:
stale_paths.append(cull_entry[1])
stale_paths.append(cull_entry[2])
if check_unused:
Transport._unused_path_count_estimate = len(unused_paths)