mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ScriptLock: initialize empty array on cleanup
This commit is contained in:
parent
7b770b2fb8
commit
9c87b5a222
1 changed files with 2 additions and 2 deletions
|
@ -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 ];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue