GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4465
@@ -40,6 +40,7 @@ func newFolder(model *Model, cfg config.FolderConfiguration) folder {
cancel: cancel,
model: model,
initialScanFinished: make(chan struct{}),
+ watchCancel: func() {},
}
@@ -34,7 +34,7 @@ func (f *sendOnlyFolder) Serve() {
f.scan.timer.Stop()
}()
- if f.FSWatcherEnabled {
+ if f.FSWatcherEnabled && f.CheckHealth() == nil {
f.startWatch()
@@ -164,7 +164,7 @@ func (f *sendReceiveFolder) Serve() {
var prevSec int64
var prevIgnoreHash string