bugfixes and refactoring in game-server
This commit is contained in:
@@ -59,6 +59,7 @@ func main() {
|
||||
|
||||
<-ctx.Done()
|
||||
log.Info("shutting down")
|
||||
manager.Shutdown()
|
||||
shutdownCtx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
_ = srv.Shutdown(shutdownCtx)
|
||||
|
||||
Reference in New Issue
Block a user