fix negative waitgroup, fix cert expiry date, better auto renewal strategy

This commit is contained in:
yusing
2024-03-23 20:06:34 +00:00
parent fff790b527
commit 539ef911de
5 changed files with 131 additions and 64 deletions

View File

@@ -79,11 +79,13 @@ func (s *Server) Stop() {
if s.httpStarted {
errHTTP := s.http.Shutdown(ctx)
s.handleErr("http", errHTTP)
s.httpStarted = false
}
if s.httpsStarted {
errHTTPS := s.https.Shutdown(ctx)
s.handleErr("https", errHTTPS)
s.httpsStarted = false
}
}