diff options
author | Christian Hesse <mail@eworm.de> | 2021-07-09 10:38:28 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-07-09 10:40:13 +0200 |
commit | 4192d30d7ebc3b2bc51663ce48e99198a9036348 (patch) | |
tree | dc380ca9dc84c4dd49329fd62eb5d247479cfed5 /global-functions | |
parent | a4e548eb809664208f55318ac033b68e2381c6cf (diff) |
global-functions: $ScriptLock: drop variable, just return
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/global-functions b/global-functions index 6af914f..7b5227a 100644 --- a/global-functions +++ b/global-functions @@ -923,12 +923,11 @@ :global ScriptLockOrder; - :local Ok false; - :while ($Ok = false) do={ + :while (true) do={ :set ($ScriptLockOrder->$Script) (($ScriptLockOrder->$Script), $Add); :delay 10ms; :foreach Ticket in=($ScriptLockOrder->$Script) do={ - :if ($Ticket = $Add) do={ :set Ok true; } + :if ($Ticket = $Add) do={ :return true; } } } } |