From 4fc7bc0703df40566c4c33f8406d1301079a3ff8 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 4 Dec 2023 22:54:53 +0200 Subject: SL-20181 Small tweak for requests --- indra/newview/llinventorymodelbackgroundfetch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra') diff --git a/indra/newview/llinventorymodelbackgroundfetch.cpp b/indra/newview/llinventorymodelbackgroundfetch.cpp index 12debd7923..49b2cb74af 100644 --- a/indra/newview/llinventorymodelbackgroundfetch.cpp +++ b/indra/newview/llinventorymodelbackgroundfetch.cpp @@ -317,7 +317,7 @@ void LLInventoryModelBackgroundFetch::start(const LLUUID& id, bool recursive) gIdleCallbacks.addFunction(&LLInventoryModelBackgroundFetch::backgroundFetchCB, NULL); } } - else if (cat && cat->getPreferredType() == LLFolderType::FT_MARKETPLACE_LISTINGS) + else if (recursive && cat && cat->getPreferredType() == LLFolderType::FT_MARKETPLACE_LISTINGS) { if (mFetchFolderQueue.empty() || mFetchFolderQueue.back().mUUID != id) { @@ -381,7 +381,7 @@ void LLInventoryModelBackgroundFetch::scheduleFolderFetch(const LLUUID& cat_id, if (forced) { // check if already requested - if (mForceFetchSet.find(cat_id) != mForceFetchSet.end()) + if (mForceFetchSet.find(cat_id) == mForceFetchSet.end()) { mForceFetchSet.insert(cat_id); mFetchItemQueue.push_front(FetchQueueInfo(cat_id, FT_FORCED)); @@ -406,7 +406,7 @@ void LLInventoryModelBackgroundFetch::scheduleItemFetch(const LLUUID& item_id, b if (forced) { // check if already requested - if (mForceFetchSet.find(item_id)!= mForceFetchSet.end()) + if (mForceFetchSet.find(item_id) == mForceFetchSet.end()) { mForceFetchSet.insert(item_id); mFetchItemQueue.push_front(FetchQueueInfo(item_id, FT_FORCED, false)); -- cgit v1.2.3