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:
casey langen 2020-10-18 13:34:46 -07:00
parent b32d87de92
commit 6d460fe27a

View File

@ -276,7 +276,7 @@ void LruDiskCache::SortAndPrune() {
int extras = count - this->maxEntries;
for (int i = 0; i < extras; i++) {
auto entry = this->cached.back();
if (rm(this->root + "/" + entry->path)) {
if (rm(entry->path)) {
this->cached.pop_back();
}
}