* move "httpServer" to "config"

This commit is contained in:
Simon Zolin
2019-07-09 18:52:06 +03:00
parent 2780ace63e
commit 5e309a7b3a
3 changed files with 5 additions and 6 deletions

View File

@@ -264,7 +264,7 @@ func handleInstallConfigure(w http.ResponseWriter, r *http.Request) {
// until all requests are finished, and _we_ are inside a request right now, so it will block indefinitely
if restartHTTP {
go func() {
httpServer.Shutdown(context.TODO())
config.httpServer.Shutdown(context.TODO())
}()
}