mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-02-23 08:39:34 +00:00
Off-by-one check for stale job tickets
This commit is contained in:
parent
29ececda9b
commit
1958bd0934
1 changed files with 1 additions and 1 deletions
|
|
@ -965,7 +965,7 @@
|
|||
$LogPrintExit2 error $0 ("No script '" . $Script . "' is running!") true;
|
||||
}
|
||||
|
||||
:if ([ :len ($ScriptLockOrder->$Script) ] > $JobCount) do={
|
||||
:if ([ :len ($ScriptLockOrder->$Script) ] >= $JobCount) do={
|
||||
$LogPrintExit2 error $0 ("More tickets than running scripts '" . $Script . "', resetting!") false;
|
||||
:set ($ScriptLockOrder->$Script);
|
||||
/ system script job remove [ find where script=$Script ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue