diff options
author | Christian Hesse <mail@eworm.de> | 2021-12-09 12:51:19 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-12-09 12:52:03 +0100 |
commit | cdcab4599a3d5fc6c2f6b8554e969eef536f0f1a (patch) | |
tree | 2ba1801e1f71b9dfc8f1296c0f2af663179fcab1 /global-functions | |
parent | 9c87b5a2221ba507422232d7fd2bd08bbc5587ff (diff) |
global-functions: $ScriptLock: initialize earlier
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/global-functions b/global-functions index 1dd4642..f5682be 100644 --- a/global-functions +++ b/global-functions @@ -888,6 +888,9 @@ :if ([ :typeof $ScriptLockOrder ] = "nothing") do={ :set ScriptLockOrder [ :toarray "" ]; } + :if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={ + :set ($ScriptLockOrder->$Script) [ :toarray "" ]; + } :local JobCount do={ :local Script [ :tostr $1 ]; @@ -928,10 +931,6 @@ :global ScriptLockOrder; - :if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={ - :set ($ScriptLockOrder->$Script) [ :toarray "" ]; - } - :while (true) do={ :local Pos [ :len ($ScriptLockOrder->$Script) ]; :set ($ScriptLockOrder->$Script->$Pos) $Add; |