mirror of
https://github.com/1f349/violet.git
synced 2024-11-09 22:22:50 +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
|
// close http servers
|
||||||
if srvApi != nil {
|
if srvApi != nil {
|
||||||
srvApi.Close()
|
_ = srvApi.Close()
|
||||||
}
|
}
|
||||||
if srvHttp != nil {
|
if srvHttp != nil {
|
||||||
srvHttp.Close()
|
_ = srvHttp.Close()
|
||||||
}
|
}
|
||||||
if srvHttps != nil {
|
if srvHttps != nil {
|
||||||
srvHttps.Close()
|
_ = srvHttps.Shutdown(context.Background())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user