diff --git a/lsyncd.lua b/lsyncd.lua index d9340fd..143a603 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -6207,7 +6207,7 @@ function runner.getAlarm ) if a == nil then error( 'got nil alarm' ) end - if alarm == true or not a + if (type(alarm) == "boolean" and alarm == true) or not a then -- 'alarm' is already immediate or -- a not a new alarm