aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-07-09 10:38:28 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-07-09 10:40:13 +0200
commit4192d30d7ebc3b2bc51663ce48e99198a9036348 (patch)
treedc380ca9dc84c4dd49329fd62eb5d247479cfed5
parenta4e548eb809664208f55318ac033b68e2381c6cf (diff)
global-functions: $ScriptLock: drop variable, just return
-rw-r--r--global-functions5
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; }
}
}
}