* dhcpd: refactor: use separate objects for ServerConfig and RWMutex

This commit is contained in:
Simon Zolin
2019-05-14 17:49:45 +03:00
parent 763b986955
commit fa47fa3f9c
2 changed files with 36 additions and 41 deletions

View File

@@ -451,10 +451,6 @@ func stopDHCPServer() error {
return nil
}
if !dhcpServer.Enabled {
return nil
}
err := dhcpServer.Stop()
if err != nil {
return errorx.Decorate(err, "Couldn't stop DHCP server")