1
1
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-11-19 15:53:50 +01:00

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

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