mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-30 03:46:52 -05:00
Transport: slice discovery_pr_tags to the end
Keep the last element.
This commit is contained in:
parent
0e2041c837
commit
6cd5be18ec
1 changed files with 1 additions and 1 deletions
|
|
@ -758,7 +758,7 @@ class Transport:
|
||||||
# Cull the path request tags list if it has reached its max size
|
# Cull the path request tags list if it has reached its max size
|
||||||
if len(Transport.discovery_pr_tags) > Transport.max_pr_tags:
|
if len(Transport.discovery_pr_tags) > Transport.max_pr_tags:
|
||||||
with Transport.discovery_pr_tags_lock:
|
with Transport.discovery_pr_tags_lock:
|
||||||
Transport.discovery_pr_tags = Transport.discovery_pr_tags[len(Transport.discovery_pr_tags)-Transport.max_pr_tags:len(Transport.discovery_pr_tags)-1]
|
Transport.discovery_pr_tags = Transport.discovery_pr_tags[len(Transport.discovery_pr_tags)-Transport.max_pr_tags:]
|
||||||
|
|
||||||
if time.time() > Transport.tables_last_culled + Transport.tables_cull_interval:
|
if time.time() > Transport.tables_last_culled + Transport.tables_cull_interval:
|
||||||
# Remove unneeded path state entries
|
# Remove unneeded path state entries
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue