From e831ad694508bf8c421d2f51b6c0d15968baf58a Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Fri, 11 Nov 2022 20:05:09 +0100 Subject: [PATCH] check alarm for type first. fixes #679 --- lsyncd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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