From d6faf81c81013670c49593015efb2d3c837815ed Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sun, 23 Jul 2017 22:50:14 +0300 Subject: [PATCH] Changed: Ignore cache status when local file has been deleted --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 2f7400fa1..ab5644f9d 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -366,8 +366,11 @@ namespace NLGUI time_t currentTime; time(¤tTime); - CHttpCacheObject cache = CHttpCache::getInstance()->lookup(download.dest); - if (CFile::fileExists(download.dest) && cache.Expires > currentTime) + CHttpCacheObject cache; + if (CFile::fileExists(download.dest)) + cache = CHttpCache::getInstance()->lookup(download.dest); + + if (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);