Just call shutdown as websockets should already be closed

This commit is contained in:
Melon 2023-08-17 14:54:01 +01:00
parent eddef80671
commit 1f72795f22
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -164,13 +164,13 @@ func normalLoad(startUp startUpConfig, wd string) {
// close http servers
if srvApi != nil {
srvApi.Close()
_ = srvApi.Close()
}
if srvHttp != nil {
srvHttp.Close()
_ = srvHttp.Close()
}
if srvHttps != nil {
srvHttps.Close()
_ = srvHttps.Shutdown(context.Background())
}
})
}