diff options
author | andreykproductengine <akleshchev@productengine.com> | 2015-06-08 16:25:59 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2015-06-08 16:25:59 +0300 |
commit | 1f1b5dc51df5bc5c8d0729adcef1f5cedcbf82c0 (patch) | |
tree | fc7cc2550df073b98c70655fdb94d6a94a7d7639 /indra | |
parent | 99d827e15bb6bbf7acfc54b3a7fcf6881f33ecc4 (diff) |
MAINT-5230 FIXED Viewer gets stuck clearing texture cache
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/lltexturecache.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index ef852bc905..bcdf8360ed 100755 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1544,17 +1544,20 @@ void LLTextureCache::purgeAllTextures(bool purge_directories) { std::string dirname = mTexturesDirName + delem + subdirs[i]; LL_INFOS() << "Deleting files in directory: " << dirname << LL_ENDL; - gDirUtilp->deleteFilesInDir(dirname, mask); if (purge_directories) { - LLFile::rmdir(dirname); + gDirUtilp->deleteDirAndContents(dirname); + } + else + { + gDirUtilp->deleteFilesInDir(dirname, mask); } } if (purge_directories) { gDirUtilp->deleteFilesInDir(mTexturesDirName, mask); LLFile::rmdir(mTexturesDirName); - } + } } mHeaderIDMap.clear(); mTexturesSizeMap.clear(); |