Only start the cache warming after all folders were scanned
This commit is contained in:
@@ -122,6 +122,7 @@ func (s *scanner) RescanAll(fullRescan bool) {
|
||||
}
|
||||
|
||||
func (s *scanner) rescanAll(fullRescan bool) {
|
||||
defer s.cacheWarmer.Flush(context.Background())
|
||||
var hasError bool
|
||||
for folder := range s.folders {
|
||||
err := s.rescan(folder, fullRescan)
|
||||
|
||||
Reference in New Issue
Block a user