forgot to remove the waiting.
Dieser Commit ist enthalten in:
Ursprung
979ae0fbad
Commit
63c518f729
5
http.go
5
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.
|
||||
|
|
Laden…
In neuem Issue referenzieren