From 9c87b5a2221ba507422232d7fd2bd08bbc5587ff Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 9 Dec 2021 12:21:03 +0100 Subject: global-functions: $ScriptLock: initialize empty array on cleanup --- global-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global-functions b/global-functions index 9977504..1dd4642 100644 --- a/global-functions +++ b/global-functions @@ -958,7 +958,7 @@ } :if ($Count = 0) do={ - :set ($ScriptLockOrder->$Script); + :set ($ScriptLockOrder->$Script) [ :toarray "" ]; } } @@ -972,7 +972,7 @@ :if ([ $TicketCount $Script ] >= [ $JobCount $Script ]) do={ $LogPrintExit2 error $0 ("More tickets than running scripts '" . $Script . "', resetting!") false; - :set ($ScriptLockOrder->$Script); + :set ($ScriptLockOrder->$Script) [ :toarray "" ]; / system script job remove [ find where script=$Script ]; } -- cgit v1.2.3-54-g00ecf