aboutsummaryrefslogtreecommitdiffstats
path: root/lease-script
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-28 00:16:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-07-01 22:52:38 +0200
commit5f2bc87b2244382fdff968df9e643722fcf26a68 (patch)
treebcdfb41294be3b1d3cb3aa281b8c4572981a10d7 /lease-script
parent08b1b72fa9bda0f08eeaf28fd7d83d6e0e06389f (diff)
lease-script: drop the delay magic...
... as this should be handled by $ScriptLock in lease scripts now.
Diffstat (limited to 'lease-script')
-rw-r--r--lease-script6
1 files changed, 0 insertions, 6 deletions
diff --git a/lease-script b/lease-script
index eacba9f..537c832 100644
--- a/lease-script
+++ b/lease-script
@@ -12,7 +12,6 @@
:global IfThenElse;
:global LogPrintExit2;
-:global RandomDelay;
:if ([ :typeof $leaseActIP ] = "nothing" || \
[ :typeof $leaseActMAC ] = "nothing" || \
@@ -26,11 +25,6 @@
$LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . \
$State . "ed lease " . $leaseActIP . " to " . $leaseActMAC) false;
-# delay a moment to update the lease table, do not run in parallel for de/assign...
-:delay ((1 + $leaseBound) . "s");
-# ... or simultaneous deassign
-$RandomDelay (([ :tonum $leaseBound ] ^ 1) * 750) "ms";
-
:foreach Script in=[ / system script find where source~("\n# provides: lease-script " . $State . "\n") ] do={
:local ScriptName [ / system script get $Script name ];
:do {