mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59:28 +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
d002d1c0c0
commit
8f6a38f299
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($AllDone = true && $QueueLen = [ :len $EmailQueue ]) do={
|
:if ($AllDone = true && $QueueLen = [ :len $EmailQueue ]) do={
|
||||||
/system/scheduler/remove $Scheduler;
|
/system/scheduler/remove [ find where name="_FlushEmailQueue" ];
|
||||||
:set EmailQueue;
|
:set EmailQueue;
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue