* plugin/file: shutdown reload goroutine Shutdown the z.Reload() routine (if started in the first place) on shutdow and reload. Fixes #1508 * Must be put in c.OnShutdown() * up test coverage
9 lines
176 B
Go
9 lines
176 B
Go
package file
|
|
|
|
// OnShutdown shuts down any running go-routines for this zone.
|
|
func (z *Zone) OnShutdown() error {
|
|
if !z.NoReload {
|
|
z.reloadShutdown <- true
|
|
}
|
|
return nil
|
|
}
|