mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
plugin/auto: fix ticker leak in golang (#5688)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user