config/default: watcher send changes only on non nil

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-08-04 12:25:29 +03:00
parent b4f332bf0d
commit efe215cd60
1 changed files with 4 additions and 2 deletions

View File

@ -338,8 +338,10 @@ func (w *defaultWatcher) run() {
delete(dstmp, sk)
}
}
w.vchan <- dstmp
src = dst
if len(dstmp) > 0 {
w.vchan <- dstmp
src = dst
}
}
}
}