mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
plugin/reload : stop scheduler on shutdown (#5686)
This commit is contained in:
@@ -83,6 +83,7 @@ func hook(event caddy.EventName, info interface{}) error {
|
||||
|
||||
go func() {
|
||||
tick := time.NewTicker(r.interval())
|
||||
defer tick.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user