diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-05-09 10:58:43 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-05-09 10:58:43 -0400 |
commit | 8528a9ae131dff09865eccd672efce621571c5e5 (patch) | |
tree | 32ce42d00bae4d1ad33d7e1d77fde2f74c58d367 /indra/newview/llviewerassetstorage.cpp | |
parent | ed9653f711ace4bd830b36cebcaaf61a97914bbb (diff) |
MAINT-7343 - improved error case handling and checking for unlikely corners
Diffstat (limited to 'indra/newview/llviewerassetstorage.cpp')
-rw-r--r-- | indra/newview/llviewerassetstorage.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llviewerassetstorage.cpp b/indra/newview/llviewerassetstorage.cpp index b9bdc4c06f..e0b64403ef 100644 --- a/indra/newview/llviewerassetstorage.cpp +++ b/indra/newview/llviewerassetstorage.cpp @@ -532,13 +532,16 @@ void LLViewerAssetStorage::assetRequestCoro( result_code = LL_ERR_ASSET_REQUEST_FAILED; ext_status = LL_EXSTAT_VFS_CORRUPT; } - if (!vf.rename(uuid, atype)) + else if (!vf.rename(uuid, atype)) { LL_WARNS("ViewerAsset") << "rename failed" << LL_ENDL; result_code = LL_ERR_ASSET_REQUEST_FAILED; ext_status = LL_EXSTAT_VFS_CORRUPT; } - mCountSucceeded++; + else + { + mCountSucceeded++; + } } else { |