diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2010-12-15 17:34:18 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2010-12-15 17:34:18 -0700 |
commit | ac71884a446170a32ec557d5e9f85d0a73e8fa23 (patch) | |
tree | 879e420a9a546ee50bb3106577d99e3e50573c3e /indra/newview/llvocache.cpp | |
parent | 57065fe5a9521158b79b7a313d6476b8dcaa13a5 (diff) |
fix for SH-446: viewer crashed after clearing cache and relogging
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rw-r--r-- | indra/newview/llvocache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index bbe637d161..cb48d1db73 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -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) { |