fix LRUResource Cache bug

This commit is contained in:
Shanfeng Pang 2024-02-22 10:41:16 +08:00
parent 64a80f1011
commit 395ad35c93

View File

@ -221,7 +221,7 @@ private:
{
std::lock_guard lock(mutex);
auto it = cells.find(key);
if (it != cells.end() && !it->second.expired)
if (it != cells.end())
{
if (!it->second.expired)
{