Commit 8d040797 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

fix lease cleanup

(cherry picked from commit 3d78e71c)
parent 8f991815
......@@ -65,7 +65,7 @@ def main():
last_cleanup = time.time()
addresses = cached_leases.keys()
for address in addresses:
if cached_leases[address]['ends'] > time.time():
if cached_leases[address]['ends'] < time.time():
del cached_leases[address]
dhcpd_changed = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment