From 1ebbc229f3bb14d0ee05826a9583d46e5d7fd0c1 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Fri, 26 Aug 2011 20:42:36 +0000 Subject: [PATCH] no events if shutting down --- lsyncd.lua | 3 +++ 1 file changed, 3 insertions(+) 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