global-functions: $ScriptLock: initialize empty array on cleanup

This commit is contained in:
Christian Hesse 2021-12-09 12:21:03 +01:00
parent 7b770b2fb8
commit 9c87b5a222

View file

@ -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 ];
}