summaryrefslogtreecommitdiff
path: root/indra/viewer_components/updater/llupdaterservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/viewer_components/updater/llupdaterservice.cpp')
-rw-r--r--indra/viewer_components/updater/llupdaterservice.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/indra/viewer_components/updater/llupdaterservice.cpp b/indra/viewer_components/updater/llupdaterservice.cpp
index 20534fdf3a..1888f191e2 100644
--- a/indra/viewer_components/updater/llupdaterservice.cpp
+++ b/indra/viewer_components/updater/llupdaterservice.cpp
@@ -373,13 +373,8 @@ void LLUpdaterServiceImpl::optionalUpdate(std::string const & newVersion,
stopTimer();
mNewVersion = newVersion;
mIsDownloading = true;
+ setState(LLUpdaterService::DOWNLOADING);
mUpdateDownloader.download(uri, hash, newVersion, false);
-
- if(getState() != LLUpdaterService::FAILURE) {
- setState(LLUpdaterService::DOWNLOADING);
- } else {
- ; // Download failed snynchronously; we are done.
- }
}
void LLUpdaterServiceImpl::requiredUpdate(std::string const & newVersion,
@@ -389,13 +384,8 @@ void LLUpdaterServiceImpl::requiredUpdate(std::string const & newVersion,
stopTimer();
mNewVersion = newVersion;
mIsDownloading = true;
+ setState(LLUpdaterService::DOWNLOADING);
mUpdateDownloader.download(uri, hash, newVersion, true);
-
- if(getState() != LLUpdaterService::FAILURE) {
- setState(LLUpdaterService::DOWNLOADING);
- } else {
- ; // Download failed snynchronously; we are done.
- }
}
void LLUpdaterServiceImpl::upToDate(void)