watcher: fix wrong comparison

This commit is contained in:
Kevin Cotugno 2017-09-27 23:27:05 -07:00
parent f4fa7f24b3
commit eae143d33c

View File

@ -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
}