1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: $ScriptLock: initialize empty array on cleanup

This commit is contained in:
Christian Hesse
2021-12-09 12:21:03 +01:00
parent 7b770b2fb8
commit 9c87b5a222

View File

@@ -958,7 +958,7 @@
}
:if ($Count = 0) do={
:set ($ScriptLockOrder->$Script);
:set ($ScriptLockOrder->$Script) [ :toarray "" ];
}
}
@@ -972,7 +972,7 @@
:if ([ $TicketCount $Script ] >= [ $JobCount $Script ]) do={
$LogPrintExit2 error $0 ("More tickets than running scripts '" . $Script . "', resetting!") false;
:set ($ScriptLockOrder->$Script);
:set ($ScriptLockOrder->$Script) [ :toarray "" ];
/ system script job remove [ find where script=$Script ];
}