fix logic error in alarm compare

This commit is contained in:
Daniel Poelzleithner 2022-04-01 02:09:08 +02:00
parent 883143f204
commit 81325b0de5

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