mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-04 19:03:17 +00:00
check alarm for type first. fixes #679
This commit is contained in:
parent
d779eb434f
commit
e831ad6945
@ -6207,7 +6207,7 @@ function runner.getAlarm
|
|||||||
)
|
)
|
||||||
if a == nil then error( 'got nil alarm' ) end
|
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
|
then
|
||||||
-- 'alarm' is already immediate or
|
-- 'alarm' is already immediate or
|
||||||
-- a not a new alarm
|
-- a not a new alarm
|
||||||
|
Loading…
Reference in New Issue
Block a user