From 5f0cdbda1ecbc2e2e4ca8c198d5cd5d98e321268 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 16 Jun 2019 14:27:25 +0530 Subject: [PATCH] Scope: minor fix done. --- DnsServerCore/Dhcp/Scope.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DnsServerCore/Dhcp/Scope.cs b/DnsServerCore/Dhcp/Scope.cs index 6a88bd30..b548334f 100644 --- a/DnsServerCore/Dhcp/Scope.cs +++ b/DnsServerCore/Dhcp/Scope.cs @@ -646,7 +646,8 @@ namespace DnsServerCore.Dhcp expiredLeases.Add(expiredLease); } - _lastModified = DateTime.UtcNow; + if (expiredLeaseKeys.Count > 0) + _lastModified = DateTime.UtcNow; return expiredLeases; }