diff --git a/plugin/hosts/setup.go b/plugin/hosts/setup.go index c256dc19a..128a365e1 100644 --- a/plugin/hosts/setup.go +++ b/plugin/hosts/setup.go @@ -26,6 +26,7 @@ func periodicHostsUpdate(h *Hosts) chan bool { go func() { ticker := time.NewTicker(h.options.reload) + defer ticker.Stop() for { select { case <-parseChan: