mirror of
https://github.com/markqvist/LXMF.git
synced 2026-10-23 19:22:59 +00:00
Use no_data_for instead of inactive_for for cleaning links
This commit is contained in:
1 parent
37e99910ec
commit
499fe4cc53
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user