Cleanup
This commit is contained in:
parent
6beed7b064
commit
c84c01f8d2
@ -28,11 +28,12 @@ func (v *Validator) Stop() {
|
||||
if v.done != nil && !v.stopped {
|
||||
v.done <- struct{}{}
|
||||
v.stopped = true
|
||||
close(v.done)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *Validator) Start(frequency time.Duration) {
|
||||
if v.dirty == true {
|
||||
if v.dirty {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user