From 9fba3dd8df8848cf5b0b34f10049a46699baab3f Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 15 Jul 2021 08:57:45 +0800 Subject: global-functions: $ScriptLock: fix off-by-one check... ... for stale job tickets Signed-off-by: Christian Hesse --- global-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; -- cgit v1.2.3-54-g00ecf