Issue #2928 - Always refresh dirty queue.

This commit is contained in:
Moonchild 2026-02-03 10:17:19 +01:00 committed by wuggy
commit 252cbabfd4

View file

@ -1944,12 +1944,13 @@ imgLoader::RemoveFromCache(imgCacheEntry* entry)
"imgLoader::RemoveFromCache", "entry's uri",
key.Spec());
if (queue.IsDirty()) {
queue.Refresh();
}
if (entry->HasNoProxies()) {
LOG_STATIC_FUNC(gImgLog,
"imgLoader::RemoveFromCache removing from tracker");
if (queue.IsDirty()) {
queue.Refresh();
}
if (mCacheTracker) {
mCacheTracker->RemoveObject(entry);
}