aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-11 11:58:41 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-17 13:21:14 +0100
commitb66332eb464884d69eef56aa5ecb7ae74d1914cc (patch)
tree191a211a0e0406aabccd25e58d2fa0e6a526236d
parent8c8c75ca66d59d9368fe3f4fe7f1124a425f41b3 (diff)
mod/notification-email: $FlushEmailQueue: just return on empty queue
-rw-r--r--mod/notification-email.rsc4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc
index bbce6d0..a3291d9 100644
--- a/mod/notification-email.rsc
+++ b/mod/notification-email.rsc
@@ -53,6 +53,10 @@
:return false;
}
+ :if ($QueueLen = 0) do={
+ :return true;
+ }
+
:if ([ :len $Scheduler ] < 0) do={
/system/scheduler/add name="_FlushEmailQueue" interval=1m start-time=startup \
comment="Doing initial checks..." on-event=(":global FlushEmailQueue; \$FlushEmailQueue;");