mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-02 01:04:55 +02:00
mod/notification-email: $FlushEmailQueue: return on success
This commit is contained in:
parent
8231c3e833
commit
009a6bd762
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue