diff options
author | Christian Hesse <mail@eworm.de> | 2021-12-09 12:21:03 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-12-09 12:52:03 +0100 |
commit | 9c87b5a2221ba507422232d7fd2bd08bbc5587ff (patch) | |
tree | e436299a2e739864e7345cb504b05164291b0de9 | |
parent | 7b770b2fb8e523eb434fcf97bea0058673e23bf3 (diff) |
global-functions: $ScriptLock: initialize empty array on cleanup
-rw-r--r-- | global-functions | 4 |
1 files 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 ]; } |