Skip to content
Snippets Groups Projects
Commit ac71884a authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

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

parent 57065fe5
No related branches found
No related tags found
No related merge requests found
...@@ -291,6 +291,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version) ...@@ -291,6 +291,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version)
{ {
return ; return ;
} }
mInitialized = TRUE ;
setDirNames(location); setDirNames(location);
if (!mReadOnly) if (!mReadOnly)
...@@ -301,8 +302,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version) ...@@ -301,8 +302,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version)
MAX_NUM_OBJECT_ENTRIES, NUM_ENTRIES_TO_PURGE); MAX_NUM_OBJECT_ENTRIES, NUM_ENTRIES_TO_PURGE);
mMetaInfo.mVersion = cache_version; mMetaInfo.mVersion = cache_version;
readCacheHeader(); readCacheHeader();
mInitialized = TRUE ;
if(mMetaInfo.mVersion != cache_version) if(mMetaInfo.mVersion != cache_version)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment