summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-08-10 16:23:15 +0300
committerVadim Savchuk <vsavchuk@productengine.com>2010-08-10 16:23:15 +0300
commit0977b27b2b270358621d4ec56c4381bc2706ad08 (patch)
tree1e5227e803980b3df83a77e0d0c39623e0fa2069
parent2f2a0ad38aecc1e9118cb51b86de578d56853311 (diff)
parentbd708f82bd3b87051e03a2794ce417ae6f432c08 (diff)
Merge from default branch
--HG-- branch : product-engine
-rwxr-xr-xindra/newview/llmediadataclient.cpp30
1 files changed, 12 insertions, 18 deletions
diff --git a/indra/newview/llmediadataclient.cpp b/indra/newview/llmediadataclient.cpp
index ec185bc790..075f0ba3ec 100755
--- a/indra/newview/llmediadataclient.cpp
+++ b/indra/newview/llmediadataclient.cpp
@@ -263,18 +263,15 @@ void LLMediaDataClient::pushBack(request_ptr_t request)
void LLMediaDataClient::trackRequest(request_ptr_t request)
{
- request_set_t::iterator iter = mUnQueuedRequests.lower_bound(request);
+ request_set_t::iterator iter = mUnQueuedRequests.find(request);
- if (iter != mUnQueuedRequests.end())
+ if(iter != mUnQueuedRequests.end())
{
- if(*iter == request)
- {
- LL_WARNS("LLMediaDataClient") << "Tracking already tracked request: " << *request << LL_ENDL;
- }
- else
- {
- mUnQueuedRequests.insert(iter, request);
- }
+ LL_WARNS("LLMediaDataClient") << "Tracking already tracked request: " << *request << LL_ENDL;
+ }
+ else
+ {
+ mUnQueuedRequests.insert(request);
}
}
@@ -284,14 +281,11 @@ void LLMediaDataClient::stopTrackingRequest(request_ptr_t request)
if (iter != mUnQueuedRequests.end())
{
- if(*iter == request)
- {
- mUnQueuedRequests.erase(iter);
- }
- else
- {
- LL_WARNS("LLMediaDataClient") << "Removing an untracked request: " << *request << LL_ENDL;
- }
+ mUnQueuedRequests.erase(iter);
+ }
+ else
+ {
+ LL_WARNS("LLMediaDataClient") << "Removing an untracked request: " << *request << LL_ENDL;
}
}