plugin/reload : stop scheduler on shutdown (#5686)

This commit is contained in:
Ondřej Benkovský
2022-10-11 13:05:00 +02:00
committed by GitHub
parent 2f24b512d3
commit 4ae811ad96

View File

@@ -83,6 +83,7 @@ func hook(event caddy.EventName, info interface{}) error {
go func() {
tick := time.NewTicker(r.interval())
defer tick.Stop()
for {
select {