aboutsummaryrefslogtreecommitdiffstats
path: root/lease-script.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'lease-script.rsc')
-rw-r--r--lease-script.rsc7
1 files changed, 5 insertions, 2 deletions
diff --git a/lease-script.rsc b/lease-script.rsc
index d9c7177..582f8ff 100644
--- a/lease-script.rsc
+++ b/lease-script.rsc
@@ -34,10 +34,13 @@
$LogPrintExit2 debug $ScriptName ("DHCP Server " . $leaseServerName . " " . [ $IfThenElse ($leaseBound = 0) \
"de" "" ] . "assigned lease " . $leaseActIP . " to " . $leaseActMAC) false;
- $ScriptLock $ScriptName false 10;
+ :if ([ $ScriptLock $ScriptName 10 ] = false) do={
+ :return false;
+ }
:if ([ :len [ /system/script/job/find where script=$ScriptName ] ] > 1) do={
- $LogPrintExit2 debug $ScriptName ("More invocations are waiting, exiting early.") true;
+ $LogPrintExit2 debug $ScriptName ("More invocations are waiting, exiting early.") false;
+ :return true;
}
:local RunOrder ({});