aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/hosts/setup.go1
1 files changed, 1 insertions, 0 deletions
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: