mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptLock: fix off-by-one check...
... for stale job tickets Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
committed by
Christian Hesse
parent
29ececda9b
commit
9fba3dd8df
@@ -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 ];
|
||||
|
Reference in New Issue
Block a user