diff options
Diffstat (limited to 'linden/indra/newview/llinventorymodel.cpp')
-rw-r--r-- | linden/indra/newview/llinventorymodel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/linden/indra/newview/llinventorymodel.cpp b/linden/indra/newview/llinventorymodel.cpp index 73f0fb3..1029a3c 100644 --- a/linden/indra/newview/llinventorymodel.cpp +++ b/linden/indra/newview/llinventorymodel.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -1348,9 +1348,6 @@ void LLInventoryModel::bulkFetch(std::string url) | |||
1348 | return; // just bail if we are disconnected. | 1348 | return; // just bail if we are disconnected. |
1349 | } | 1349 | } |
1350 | 1350 | ||
1351 | //HACK. This is inelegant. We're shuffling a dequeue to a map to get rid of | ||
1352 | //redundant requests. When we get rid of the old code entirely, we can change | ||
1353 | //the dequeue to a map. In the new model, there is no benefit to queue order. | ||
1354 | U32 folder_count=0; | 1351 | U32 folder_count=0; |
1355 | U32 max_batch_size=5; | 1352 | U32 max_batch_size=5; |
1356 | 1353 | ||
@@ -1502,7 +1499,7 @@ void LLInventoryModel::stopBackgroundFetch() | |||
1502 | //static | 1499 | //static |
1503 | void LLInventoryModel::backgroundFetch(void*) | 1500 | void LLInventoryModel::backgroundFetch(void*) |
1504 | { | 1501 | { |
1505 | if (sBackgroundFetchActive) | 1502 | if (sBackgroundFetchActive && gAgent.getRegion()) |
1506 | { | 1503 | { |
1507 | //If we'll be using the capability, we'll be sending batches and the background thing isn't as important. | 1504 | //If we'll be using the capability, we'll be sending batches and the background thing isn't as important. |
1508 | std::string url = gAgent.getRegion()->getCapability("WebFetchInventoryDescendents"); | 1505 | std::string url = gAgent.getRegion()->getCapability("WebFetchInventoryDescendents"); |