mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-09 19:39:29 +00:00
mod/notification-email: remove schedule with find...
... as a race condition could occur and the scheduler is already gone.
This commit is contained in:
parent
a72bccc49c
commit
f0044f9886
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue