diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-16 16:22:37 -0800 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-16 16:22:37 -0800 |
commit | 74a60346b2f04157862786d31d7181885092b766 (patch) | |
tree | d3c19f066318cd939611b189d9163f5ce4e2845f /indra | |
parent | ad354324ca444d1fc71653e2ade799053a8d6f01 (diff) |
remove downloaded file on error.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/viewer_components/updater/llupdatedownloader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/viewer_components/updater/llupdatedownloader.cpp b/indra/viewer_components/updater/llupdatedownloader.cpp index eccc25aeee..4820f1f452 100644 --- a/indra/viewer_components/updater/llupdatedownloader.cpp +++ b/indra/viewer_components/updater/llupdatedownloader.cpp @@ -308,6 +308,7 @@ void LLUpdateDownloader::Implementation::run(void) LL_WARNS("UpdateDownload") << "download failed with error '" << curl_easy_strerror(code) << "'" << LL_ENDL; LLFile::remove(mDownloadRecordPath); + if(mDownloadData.has("path")) LLFile::remove(mDownloadData["path"].asString()); mClient.downloadError("curl error"); } |