plugin/auto: fix ticker leak in golang (#5688)

This commit is contained in:
Yong Tang
2022-10-11 09:27:20 -04:00
committed by GitHub
parent c61e8f3dbc
commit 006703c1b2

View File

@@ -50,6 +50,7 @@ func setup(c *caddy.Controller) error {
}
go func() {
ticker := time.NewTicker(a.loader.ReloadInterval)
defer ticker.Stop()
for {
select {
case <-walkChan: