1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-05-12 06:26:23 +02: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

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