mod/notification-email: remove schedule with find...

... as a race condition could occur and the scheduler is already gone.
This commit is contained in:
Christian Hesse 2025-11-17 09:56:49 +01:00
parent d002d1c0c0
commit 8f6a38f299

View file

@ -132,7 +132,7 @@
}
:if ($AllDone = true && $QueueLen = [ :len $EmailQueue ]) do={
/system/scheduler/remove $Scheduler;
/system/scheduler/remove [ find where name="_FlushEmailQueue" ];
:set EmailQueue;
:return true;
}