mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-22 06:40:54 +00:00
A couple small indexer tweaks and fixes.
This commit is contained in:
parent
ae1b2ee233
commit
2df97b1fff
@ -191,6 +191,7 @@ namespace musik { namespace core { namespace sdk { namespace fs {
|
||||
|
||||
struct stat info = {0};
|
||||
if (stat(fn.c_str(), &info) < 0) {
|
||||
closedir(dir);
|
||||
return;
|
||||
}
|
||||
if (S_ISDIR(info.st_mode)) {
|
||||
|
@ -96,7 +96,9 @@ ScanResult GmeIndexerSource::Scan(
|
||||
};
|
||||
|
||||
for (auto& path : this->paths) {
|
||||
fs::scanDirectory(std::string(path), checkFile, checkInterrupt);
|
||||
if (!this->interrupt) {
|
||||
fs::scanDirectory(std::string(path), checkFile, checkInterrupt);
|
||||
}
|
||||
}
|
||||
|
||||
indexer->CommitProgress(this, this->filesIndexed);
|
||||
|
@ -101,7 +101,9 @@ ScanResult OpenMptIndexerSource::Scan(
|
||||
};
|
||||
|
||||
for (auto& path : this->paths) {
|
||||
fs::scanDirectory(std::string(path), checkFile, checkInterrupt);
|
||||
if (!this->interrupt) {
|
||||
fs::scanDirectory(std::string(path), checkFile, checkInterrupt);
|
||||
}
|
||||
}
|
||||
|
||||
indexer->CommitProgress(this, this->filesIndexed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user