From a46fd481874b2277b191faf35ae035febdc045d6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 9 Dec 2021 22:30:43 +0100 Subject: [PATCH] global-functions: $ScriptLock: remove ticket in a loop This was not required with RouterOS v6, but for any reason removing a ticket may fail with RouterOS v7 in very rare cases. So remove in a loop... --- global-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/global-functions b/global-functions index ce538f3..0e4c514 100644 --- a/global-functions +++ b/global-functions @@ -946,8 +946,9 @@ :global ScriptLockOrder; :foreach Id,Ticket in=($ScriptLockOrder->$Script) do={ - :if (($ScriptLockOrder->$Script->$Id) = $Remove) do={ + :while (($ScriptLockOrder->$Script->$Id) = $Remove) do={ :set ($ScriptLockOrder->$Script->$Id); + :delay 10ms; } } }