diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-04-12 16:10:21 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-04-12 16:10:21 -0600 |
commit | 4687803c8e5371cab2bdf2636397b9043edf0299 (patch) | |
tree | b5ede198149c6f4d52db94a1f93ede7f1c8c3b90 /indra/newview | |
parent | 493b84f2fc34ab1bb798b20c022be6edf036b3d7 (diff) |
fix the crash for SH-4004: interesting: need debug option to clear viewer cache while still logged in
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llvocache.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 1dd149631a..f90bddcba9 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -593,7 +593,12 @@ void LLVOCache::removeCache(ELLPath location, bool started) void LLVOCache::removeCache() { - llassert_always(mInitialized) ; + if(!mInitialized) + { + //OK to remove cache even it is not initialized. + llwarns << "Object cache is not initialized yet." << llendl; + } + if(mReadOnly) { llwarns << "Not clearing object cache: Cache is currently in read-only mode." << llendl; |