mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-11-05 11:37:43 +09:00
* minor
This commit is contained in:
1 parent
1fc70cbc08
commit
fd26af2677
1 file changed
+2
@@ -372,11 +372,13 @@ func cleanup() {
|
||||
|
||||
// Stop HTTP server, possibly waiting for all active connections to be closed
|
||||
func stopHTTPServer() {
|
||||
log.Info("Stopping HTTP server...")
|
||||
config.httpsServer.shutdown = true
|
||||
if config.httpsServer.server != nil {
|
||||
config.httpsServer.server.Shutdown(context.TODO())
|
||||
}
|
||||
config.httpServer.Shutdown(context.TODO())
|
||||
log.Info("Stopped HTTP server")
|
||||
}
|
||||
|
||||
// This function is called before application exits
|
||||
|
||||
Reference in new issue
Block a user