DhcpServer: saving modified scopes and zone in Stop().

This commit is contained in:
Shreyas Zare
2020-12-20 16:55:47 +05:30
parent ba343ce811
commit 5a1f32650d

View File

@@ -134,9 +134,6 @@ namespace DnsServerCore.Dhcp
if (_maintenanceTimer != null)
_maintenanceTimer.Dispose();
SaveModifiedScopes();
SaveModifiedDnsAuthZones();
}
_disposed = true;
@@ -1203,6 +1200,9 @@ namespace DnsServerCore.Dhcp
StopMaintenanceTimer();
SaveModifiedScopes();
SaveModifiedDnsAuthZones();
foreach (KeyValuePair<string, Scope> scope in _scopes)
UnloadScope(scope.Value);