diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index da4e97655..d5e094b0f 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -1274,9 +1274,9 @@ bool LLTextureFetchWorker::doWork(S32 param) //1, not openning too many file descriptors at the same time; //2, control the traffic of http so udp gets bandwidth. // - static const LLCachedControl max_http_requests("HTTPMaxRequests", 32); - static const LLCachedControl min_http_requests("HTTPMinRequests", 2); - if((mFetcher->getNumHTTPRequests() > max_http_requests) || + static const LLCachedControl max_http_requests("HTTPMaxRequests", 32); + static const LLCachedControl min_http_requests("HTTPMinRequests", 2); + if(((U32)mFetcher->getNumHTTPRequests() > max_http_requests) || ((mFetcher->getTextureBandwidth() > mFetcher->mMaxBandwidth) && ((U32)mFetcher->getNumHTTPRequests() > min_http_requests)) || !sgConnectionThrottle())