watcher: fix wrong comparison
This commit is contained in:
parent
f4fa7f24b3
commit
eae143d33c
@ -15,7 +15,7 @@ type validator struct {
|
||||
}
|
||||
|
||||
func (v *validator) stop() {
|
||||
if v.ticker == nil || v.stop == nil {
|
||||
if v.ticker == nil || v.done == nil {
|
||||
v.ticker.Stop()
|
||||
v.done <- true
|
||||
}
|
||||
|
Reference in New Issue
Block a user