diff options
author | Ben Harris <mail@bharr.is> | 2021-07-15 08:57:45 +0800 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-07-15 10:17:25 +0200 |
commit | 9fba3dd8df8848cf5b0b34f10049a46699baab3f (patch) | |
tree | e23b231925b7eea6b34da5040320011f389e44c6 | |
parent | 29ececda9b9bbb16392b778bd8ff012ed88427ca (diff) |
global-functions: $ScriptLock: fix off-by-one check...
... for stale job tickets
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | global-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions b/global-functions index 1c20636..7a0bb39 100644 --- a/global-functions +++ b/global-functions @@ -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 ]; |