mirror of
https://github.com/1f349/violet.git
synced 2024-12-23 07:54:15 +00:00
Just call shutdown as websockets should already be closed
This commit is contained in:
parent
eddef80671
commit
1f72795f22
@ -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())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user