Skip to content

Commit

Permalink
global-functions: $ScriptLock: initialize empty array on cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eworm-de committed Dec 9, 2021
1 parent 7b770b2 commit 9c87b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions global-functions
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@
}

:if ($Count = 0) do={
:set ($ScriptLockOrder->$Script);
:set ($ScriptLockOrder->$Script) [ :toarray "" ];
}
}

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

Expand Down

0 comments on commit 9c87b5a

Please sign in to comment.