aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/auto/setup.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/auto/setup.go b/plugin/auto/setup.go
index 38e8d26fe..1a7eee980 100644
--- a/plugin/auto/setup.go
+++ b/plugin/auto/setup.go
@@ -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: