summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-11-09 09:15:17 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2010-11-09 09:15:17 -0800
commit2b6cf1d79929c1fb9b62f52f80bd72a949a4d11e (patch)
treecf7ef458d830cce58ea027ac09c44f2597041c19 /indra
parent8cce8827e01dab6bfcd3e94e56b6041f8f487c76 (diff)
parent2cfcdfe2ffd97384324c940447a4197cbf85a38e (diff)
Automated merge with https://bitbucket.org/mani_linden/viewer-development
Diffstat (limited to 'indra')
-rw-r--r--indra/viewer_components/updater/llupdatedownloader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/viewer_components/updater/llupdatedownloader.cpp b/indra/viewer_components/updater/llupdatedownloader.cpp
index ca1d2d25de..2794f80c47 100644
--- a/indra/viewer_components/updater/llupdatedownloader.cpp
+++ b/indra/viewer_components/updater/llupdatedownloader.cpp
@@ -272,6 +272,7 @@ size_t LLUpdateDownloader::Implementation::onBody(void * buffer, size_t size)
void LLUpdateDownloader::Implementation::run(void)
{
CURLcode code = curl_easy_perform(mCurl);
+ mDownloadStream.close();
if(code == CURLE_OK) {
LLFile::remove(mDownloadRecordPath);
if(validateDownload()) {
@@ -379,7 +380,7 @@ void LLUpdateDownloader::Implementation::throwOnCurlError(CURLcode code)
bool LLUpdateDownloader::Implementation::validateDownload(void)
{
std::string filePath = mDownloadData["path"].asString();
- llifstream fileStream(filePath);
+ llifstream fileStream(filePath, std::ios_base::in | std::ios_base::binary);
if(!fileStream) return false;
std::string hash = mDownloadData["hash"].asString();