fix empty path handling
This commit is contained in:
parent
0c73cae77b
commit
420b63cbe4
|
@ -138,7 +138,7 @@ class Scanner {
|
|||
* walk over any folders that are not fully scanned yet and scan them
|
||||
*/
|
||||
public function backgroundScan() {
|
||||
while ($path = $this->cache->getIncomplete()) {
|
||||
while (($path = $this->cache->getIncomplete()) !== false) {
|
||||
$this->scan($path);
|
||||
$this->cache->correctFolderSize($path);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue