mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
Fix an infinite recursion bug. Fixes issue #284
This commit is contained in:
parent
a81d0c55e7
commit
38d4cb40c8
@ -180,7 +180,7 @@ void LibraryWatcher::ScanSubdirectory(
|
||||
// If one has been removed, "rescan" it to get the deleted songs
|
||||
SubdirectoryList previous_subdirs = t->GetImmediateSubdirs(path);
|
||||
foreach (const Subdirectory& subdir, previous_subdirs) {
|
||||
if (!QFile::exists(subdir.path)) {
|
||||
if (!QFile::exists(subdir.path) && subdir.path != path) {
|
||||
ScanSubdirectory(subdir.path, subdir, t, true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user