From e0ab70ca8237c738771b4f29d6fc573a6a4947d8 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 8 Jun 2017 22:37:19 +0300 Subject: [PATCH] Fixed: Correctly expire object if file is removed from cache. --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 7e67facfe..8c309aa46 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -325,7 +325,7 @@ namespace NLGUI time(¤tTime); CHttpCacheObject cache = CHttpCache::getInstance()->lookup(download.dest); - if (cache.Expires > currentTime) + if (CFile::fileExists(download.dest) && cache.Expires > currentTime) { #ifdef LOG_DL nlwarning("Cache for (%s) is not expired (%s, expires:%d)", download.url.c_str(), download.dest.c_str(), cache.Expires - currentTime);