aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-11 10:55:23 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-17 11:20:09 +0100
commit009a6bd76204083f4b1971b285d90e916c0fbc29 (patch)
tree6711340cc3f9a2946785bc4256fd0217a62acf0f
parent8231c3e833ee83a118f4d8395c097e6a9f312c2f (diff)
mod/notification-email: $FlushEmailQueue: return on success
-rw-r--r--mod/notification-email.rsc7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc
index b109bf4..1d9a0a1 100644
--- a/mod/notification-email.rsc
+++ b/mod/notification-email.rsc
@@ -111,10 +111,11 @@
:if ($AllDone = true && $QueueLen = [ :len $EmailQueue ]) do={
/system/scheduler/remove $Scheduler;
:set EmailQueue;
- } else={
- /system/scheduler/set interval=(($SchedVal->"run-count") . "m") \
- comment="Waiting for retry..." $Scheduler;
+ :return true;
}
+
+ /system/scheduler/set interval=(($SchedVal->"run-count") . "m") \
+ comment="Waiting for retry..." $Scheduler;
} on-error={
:global ExitError; $ExitError false $0;
} }