mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 01:34:32 +02:00
mod/notification-email: $FlushEmailQueue: return on purge
This commit is contained in:
parent
009a6bd762
commit
5310673152
1 changed files with 6 additions and 0 deletions
|
@ -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={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue