1
0
Fork 0

forgot to remove the waiting.

Dieser Commit ist enthalten in:
Sebastian Tobie 2021-01-12 19:29:25 +01:00
Ursprung 979ae0fbad
Commit 63c518f729
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -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.