Do not erase cache every login forever, when NewCacheLocation is set a non-existing directory!

I can't believe that I have not have gotten a cache for two years
because of this... I knew I didn't, but didn't really want to fix
it while I working on the network code (AICurl) ;). It kinda made
for a good testing. Bet my ISP is glad I fixed it though.
This commit is contained in:
Aleric Inglewood
2013-12-31 23:37:10 +01:00
parent 93736308c9
commit 9bce3b38d4

View File

@@ -3285,6 +3285,8 @@ bool LLAppViewer::initCache()
{
LL_WARNS("AppCache") << "Unable to set cache location" << LL_ENDL;
gSavedSettings.setString("CacheLocation", "");
// Keep NewCacheLocation equal to CacheLocation so we won't try to erase the cache the next time the viewer is run.
gSavedSettings.setString("NewCacheLocation", "");
}
if (mPurgeCache && !read_only)