From 6d460fe27af19401a31c1a952e8a47cd3e85c9a0 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 18 Oct 2020 13:34:46 -0700 Subject: [PATCH] Fix LRU disk cache on Windows. Not sure how this was ever working on Unix, so we need to check it again. --- src/plugins/httpdatastream/LruDiskCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/httpdatastream/LruDiskCache.cpp b/src/plugins/httpdatastream/LruDiskCache.cpp index 44af39a8c..015db9996 100644 --- a/src/plugins/httpdatastream/LruDiskCache.cpp +++ b/src/plugins/httpdatastream/LruDiskCache.cpp @@ -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(); } }