From b26017c2d1988ef17aa513566b741bd467998233 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sat, 14 Jan 2023 20:44:55 -0800 Subject: [PATCH] Rework DTD blocking detection --- files/usr/local/bin/mgr/lqm.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/usr/local/bin/mgr/lqm.lua b/files/usr/local/bin/mgr/lqm.lua index ff81c887..f793b9da 100755 --- a/files/usr/local/bin/mgr/lqm.lua +++ b/files/usr/local/bin/mgr/lqm.lua @@ -647,12 +647,11 @@ function lqm() if track.type == "RF" then -- If we have a direct dtd connection to this device, make sure we use that + track.blocks.dtd = false for _, dtd in pairs(tracker) do if dtd.type == "DtD" and dtd.hostname == track.hostname then if dtd.distance and dtd.distance < dtd_distance then track.blocks.dtd = true - else - track.blocks.dtd = false end break end