From 06615a580eb435a3e48d0a46dd20805f1c6fdeac Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 11 Aug 2011 00:51:09 +0200 Subject: [PATCH] Silly kitty me -.- --- indra/newview/lltexturefetch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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())