Browse Source

Prevent backgroundScan() from looping if opendir() is failing for the same path

remotes/origin/stable6
Michael Gapczynski 13 years ago
parent
commit
71eed76dbe
  1. 4
      lib/files/cache/scanner.php

4
lib/files/cache/scanner.php

@ -179,9 +179,11 @@ class Scanner {
* walk over any folders that are not fully scanned yet and scan them
*/
public function backgroundScan() {
while (($path = $this->cache->getIncomplete()) !== false) {
$lastPath = null;
while (($path = $this->cache->getIncomplete()) !== false && $path !== $lastPath) {
$this->scan($path);
$this->cache->correctFolderSize($path);
$lastPath = $path;
}
}
}
Loading…
Cancel
Save