diff --git a/http.go b/http.go index a9677a1..2182098 100644 --- a/http.go +++ b/http.go @@ -94,10 +94,7 @@ func (s *Server) UseAuthBackend(a auth.AuthenticationHandler) { // Stop Shuts the Server down func (s *Server) Stop(ctx context.Context) { - go func() { - log.Info().Err(s.http.Shutdown(ctx)).Msg("Server Shut down.") - }() - <-ctx.Done() + log.Info().Err(s.http.Shutdown(ctx)).Msg("Server Shut down.") } // Site is an Interface to abstract the modularized group of pages.