diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-11 10:59:37 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-17 11:20:09 +0100 |
commit | 53106731528adc607ee40336b79c516fac594a17 (patch) | |
tree | efc6263719ce18f8ba908ad4434517c8f51889c9 | |
parent | 009a6bd76204083f4b1971b285d90e916c0fbc29 (diff) |
mod/notification-email: $FlushEmailQueue: return on purge
-rw-r--r-- | mod/notification-email.rsc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc index 1d9a0a1..60c1e9b 100644 --- a/mod/notification-email.rsc +++ b/mod/notification-email.rsc @@ -114,6 +114,12 @@ :return true; } + :if ([ :len [ /system/scheduler/find where name="_FlushEmailQueue" ] ] = 0 && \ + [ :typeof $EmailQueue ] = "nothing") do={ + $LogPrint info $0 ("Queue was purged? Exiting."); + :return false; + } + /system/scheduler/set interval=(($SchedVal->"run-count") . "m") \ comment="Waiting for retry..." $Scheduler; } on-error={ |