lib/model: No watch-error on missing folder (fixes #5833) (#5876)

This commit is contained in:
Simon Frei 2019-07-19 19:41:16 +02:00 committed by Jakob Borg
parent 4d3432af3e
commit b5b54ff057
1 changed files with 1 additions and 1 deletions

View File

@ -2242,7 +2242,7 @@ func (m *model) WatchError(folder string) error {
m.fmut.RLock()
defer m.fmut.RUnlock()
if err := m.checkFolderRunningLocked(folder); err != nil {
return err
return nil // If the folder isn't running, there's no error to report.
}
return m.folderRunners[folder].WatchError()
}