fix for SH-446: viewer crashed after clearing cache and relogging

meow-7.2.2
Xiaohong Bao 2010-12-15 17:34:18 -07:00
parent 57065fe5a9
commit ac71884a44
1 changed files with 2 additions and 2 deletions

View File

@ -291,6 +291,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version)
{
return ;
}
mInitialized = TRUE ;
setDirNames(location);
if (!mReadOnly)
@ -301,8 +302,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version)
MAX_NUM_OBJECT_ENTRIES, NUM_ENTRIES_TO_PURGE);
mMetaInfo.mVersion = cache_version;
readCacheHeader();
mInitialized = TRUE ;
readCacheHeader();
if(mMetaInfo.mVersion != cache_version)
{