mod/notification-email: $FlushEmailQueue: just return on empty queue

This commit is contained in:
Christian Hesse 2024-12-11 11:58:41 +01:00
parent 8c8c75ca66
commit b66332eb46

View file

@ -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;");