mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user