Use no_data_for instead of inactive_for for cleaning links

This commit is contained in:
Mark Qvist 2025-05-15 20:27:19 +02:00
parent 37e99910ec
commit 499fe4cc53

View file

@ -827,7 +827,7 @@ class LXMRouter:
closed_links = []
for link_hash in self.direct_links:
link = self.direct_links[link_hash]
inactive_time = link.inactive_for()
inactive_time = link.no_data_for()
if inactive_time > LXMRouter.LINK_MAX_INACTIVITY:
link.teardown()