Fixed a error in garbage collection
This commit is contained in:
parent
b6ba834669
commit
3205fb4807
1 changed files with 1 additions and 0 deletions
|
|
@ -699,6 +699,7 @@ void sfz::FilePool::triggerGarbageCollection() noexcept
|
||||||
if (readerCount == 0) {
|
if (readerCount == 0) {
|
||||||
data.availableFrames = 0;
|
data.availableFrames = 0;
|
||||||
garbageToCollect.push_back(std::move(data.fileData));
|
garbageToCollect.push_back(std::move(data.fileData));
|
||||||
|
data.status = FileData::Status::Preloaded;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
data.status = status;
|
data.status = status;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue