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...
This commit is contained in:
Christian Hesse 2021-12-09 22:30:43 +01:00
parent b423e6ed0f
commit a46fd48187

View file

@ -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;
}
}
}