Stop certmagic cache on shutdown

This commit is contained in:
Simon Ser 2021-02-17 18:45:14 +01:00
parent 3764c75098
commit 0fb214afc1
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ func (srv *Server) Stop() {
for _, ln := range srv.Listeners { for _, ln := range srv.Listeners {
ln.Stop() ln.Stop()
} }
srv.acmeCache.cache.Stop()
} }
// Replace starts the server but takes over existing listeners from an old // Replace starts the server but takes over existing listeners from an old