mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04: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:
parent
b423e6ed0f
commit
a46fd48187
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue