issue_179 #180

Merged
vtolstov merged 6 commits from devstigneev/micro-server-http:issue_179 into master 2024-03-08 23:05:32 +03:00
Showing only changes of commit 1432587369 - Show all commits

View File

@ -533,9 +533,12 @@ func (h *Server) Start() error {
ctx, cancel := context.WithTimeout(context.Background(), h.opts.GracefulTimeout)
defer cancel()
if err := hs.Shutdown(ctx); err != nil {
ch <- hs.Close()
err := hs.Shutdown(ctx)
if err != nil {
err = hs.Close()
}
ch <- err
}()
return nil