From 6f79eb996a3ddc2c6b7306841d7f101d059fd65d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 17 Nov 2022 22:34:08 +0100 Subject: mod/notification-email: make sure the scheduler interval is never zero --- mod/notification-email | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/notification-email b/mod/notification-email index 81ca563..264a154 100644 --- a/mod/notification-email +++ b/mod/notification-email @@ -39,7 +39,7 @@ $LogPrintExit2 warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty.") false; } - /system/scheduler/set interval=($QueueLen . "m") [ find where name=$0 ]; + /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") [ find where name=$0 ]; :foreach Id,Message in=$EmailQueue do={ :if ([ :typeof $Message ] = "array" ) do={ -- cgit v1.2.3-54-g00ecf