fix logic error in alarm compare

This commit is contained in:
Daniel Poelzleithner 2022-04-01 02:09:08 +02:00
parent 6d9164a29a
commit 4a0896f58f
1 changed files with 2 additions and 2 deletions

View File

@ -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