mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 05:34:28 +02:00
mod/notification-email: $FlushEmailQueue: just return on empty queue
This commit is contained in:
parent
8c8c75ca66
commit
b66332eb46
1 changed files with 4 additions and 0 deletions
|
@ -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;");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue