mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fix LRU disk cache on Windows. Not sure how this was ever working on
Unix, so we need to check it again.
This commit is contained in:
parent
b32d87de92
commit
6d460fe27a
@ -276,7 +276,7 @@ void LruDiskCache::SortAndPrune() {
|
|||||||
int extras = count - this->maxEntries;
|
int extras = count - this->maxEntries;
|
||||||
for (int i = 0; i < extras; i++) {
|
for (int i = 0; i < extras; i++) {
|
||||||
auto entry = this->cached.back();
|
auto entry = this->cached.back();
|
||||||
if (rm(this->root + "/" + entry->path)) {
|
if (rm(entry->path)) {
|
||||||
this->cached.pop_back();
|
this->cached.pop_back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user