diff --git a/lsyncd.lua b/lsyncd.lua index e918734..44efe0e 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -2920,6 +2920,9 @@ end -- times ... the alarm time (only read if number is 1) -- function runner.getAlarm() + if lsyncdStatus ~= "run" then + return false + end local alarm = false ---- -- checks if current nearest alarm or a is earlier