aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-12-09 22:30:43 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-12-09 22:48:30 +0100
commita46fd481874b2277b191faf35ae035febdc045d6 (patch)
treedf6f217ea90ee1e8ca04e1b4282ec905cc128e9d
parentb423e6ed0f382ecdfd24e0b7b6d8e3dc4b43fede (diff)
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...
-rw-r--r--global-functions3
1 files changed, 2 insertions, 1 deletions
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;
}
}
}