From 4192d30d7ebc3b2bc51663ce48e99198a9036348 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 9 Jul 2021 10:38:28 +0200 Subject: global-functions: $ScriptLock: drop variable, just return --- global-functions | 5 ++--- 1 file 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; } } } } -- cgit v1.2.3-70-g09d2