From 63c518f729559323839052b7391afce7478b2b43 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Tue, 12 Jan 2021 19:29:25 +0100 Subject: [PATCH] forgot to remove the waiting. --- http.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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.