diff options
| author | Andrew A. de Laix <alain@lindenlab.com> | 2010-12-10 11:26:23 -0800 | 
|---|---|---|
| committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-12-10 11:26:23 -0800 | 
| commit | 1924f1bbca437eac4ca5d047c489042e65904d2e (patch) | |
| tree | 1877023b18ef2d14d2d6ac6abf34a374f223208c /indra/viewer_components/updater | |
| parent | 7887bdfd5c5488f49e48df1eae67ab30faabb1da (diff) | |
no bandwidth limit for required downloads.
Diffstat (limited to 'indra/viewer_components/updater')
| -rw-r--r-- | indra/viewer_components/updater/llupdatedownloader.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/indra/viewer_components/updater/llupdatedownloader.cpp b/indra/viewer_components/updater/llupdatedownloader.cpp index d67de1c83b..2dd0084fdc 100644 --- a/indra/viewer_components/updater/llupdatedownloader.cpp +++ b/indra/viewer_components/updater/llupdatedownloader.cpp @@ -275,7 +275,7 @@ void LLUpdateDownloader::Implementation::resume(void)  void LLUpdateDownloader::Implementation::setBandwidthLimit(U64 bytesPerSecond)  { -	if((mBandwidthLimit != bytesPerSecond) && isDownloading()) { +	if((mBandwidthLimit != bytesPerSecond) && isDownloading() && !mDownloadData["required"].asBoolean()) {  		llassert(mCurl != 0);  		mBandwidthLimit = bytesPerSecond;  		CURLcode code = curl_easy_setopt(mCurl, CURLOPT_MAX_RECV_SPEED_LARGE, &mBandwidthLimit); @@ -411,8 +411,10 @@ void LLUpdateDownloader::Implementation::initializeCurlGet(std::string const & u  	throwOnCurlError(curl_easy_setopt(mCurl, CURLOPT_PROGRESSFUNCTION, &progress_callback));  	throwOnCurlError(curl_easy_setopt(mCurl, CURLOPT_PROGRESSDATA, this));  	throwOnCurlError(curl_easy_setopt(mCurl, CURLOPT_NOPROGRESS, false)); -	if(mBandwidthLimit != 0) { +	if((mBandwidthLimit != 0) && !mDownloadData["required"].asBoolean()) {  		throwOnCurlError(curl_easy_setopt(mCurl, CURLOPT_MAX_RECV_SPEED_LARGE, mBandwidthLimit)); +	} else { +		throwOnCurlError(curl_easy_setopt(mCurl, CURLOPT_MAX_RECV_SPEED_LARGE, -1));  	}  	mDownloadPercent = 0; | 
