Skip to content

Commit b5b54ff

Browse files
imsodincalmh
authored andcommitted
lib/model: No watch-error on missing folder (fixes syncthing#5833) (syncthing#5876)
1 parent 4d3432a commit b5b54ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ func (m *model) WatchError(folder string) error {
22422242
m.fmut.RLock()
22432243
defer m.fmut.RUnlock()
22442244
if err := m.checkFolderRunningLocked(folder); err != nil {
2245-
return err
2245+
return nil // If the folder isn't running, there's no error to report.
22462246
}
22472247
return m.folderRunners[folder].WatchError()
22482248
}

0 commit comments

Comments
 (0)