Commits

alain_linden committed a531fa1

a less brain dead fix for CHOP-369

Comments (0)

Files changed (1)

indra/viewer_components/updater/llupdaterservice.cpp

 	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,
 	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)