aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/reload/reload.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/reload/reload.go b/plugin/reload/reload.go
index 632c0369e..917681c3e 100644
--- a/plugin/reload/reload.go
+++ b/plugin/reload/reload.go
@@ -83,6 +83,7 @@ func hook(event caddy.EventName, info interface{}) error {
go func() {
tick := time.NewTicker(r.interval())
+ defer tick.Stop()
for {
select {