mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-31 02:48:45 -04:00
Use no_data_for instead of inactive_for for cleaning links
This commit is contained in:
parent
37e99910ec
commit
499fe4cc53
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ class LXMRouter:
|
||||||
closed_links = []
|
closed_links = []
|
||||||
for link_hash in self.direct_links:
|
for link_hash in self.direct_links:
|
||||||
link = self.direct_links[link_hash]
|
link = self.direct_links[link_hash]
|
||||||
inactive_time = link.inactive_for()
|
inactive_time = link.no_data_for()
|
||||||
|
|
||||||
if inactive_time > LXMRouter.LINK_MAX_INACTIVITY:
|
if inactive_time > LXMRouter.LINK_MAX_INACTIVITY:
|
||||||
link.teardown()
|
link.teardown()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue