From 4a0896f58f6045406b60061b5be72686dd3956be Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Fri, 1 Apr 2022 02:09:08 +0200 Subject: [PATCH] fix logic error in alarm compare --- lsyncd.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsyncd.lua b/lsyncd.lua index 4f9cb0b..6ad1630 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -3934,8 +3934,8 @@ local Tunnels = ( function local rv = nextCycle for _, tunnel in ipairs( tunnelList ) do local ta = tunnel:getAlarm() - if ta ~= false - and ta < rv then + if ta == true or (type(ta) == "userdata" + and ta < rv) then rv = ta end end