mirror of
https://github.com/1f349/violet.git
synced 2024-11-23 03:41:43 +00:00
Shutdown websocket server first
This commit is contained in:
parent
f3c641b82d
commit
eddef80671
@ -159,6 +159,9 @@ func normalLoad(startUp startUpConfig, wd string) {
|
||||
exit_reload.ExitReload("Violet", func() {
|
||||
allCompilables.Compile()
|
||||
}, func() {
|
||||
// close websockets first
|
||||
ws.Shutdown()
|
||||
|
||||
// close http servers
|
||||
if srvApi != nil {
|
||||
srvApi.Close()
|
||||
@ -169,6 +172,5 @@ func normalLoad(startUp startUpConfig, wd string) {
|
||||
if srvHttps != nil {
|
||||
srvHttps.Close()
|
||||
}
|
||||
ws.Shutdown()
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user