mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 17:00:37 +00:00
Wait for server shutdown when stopping server
This commit is contained in:
@@ -102,6 +102,7 @@ func (s *ApiServer) Start() {
|
||||
if err != nil {
|
||||
logger.ErrorLn("Failed to shutdown server:", err)
|
||||
}
|
||||
s.onServerShutdown <- true
|
||||
}()
|
||||
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user