summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-09-11 17:31:08 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-09-11 17:33:55 +0300
commitf107d8431ccbd85bbe6f2ac0fd47cd409b8c0cfc (patch)
tree465bcc865e88361be891e75a3c0544f931f22b2f
parentcfb69846f1e8309ed86d4a18eb26a889f6dbaccc (diff)
SL-20199 Fix invalid or oversized folder being refetched indefinetely
-rw-r--r--indra/newview/llinventorymodelbackgroundfetch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodelbackgroundfetch.cpp b/indra/newview/llinventorymodelbackgroundfetch.cpp
index 44eccd955e..07d5713fc8 100644
--- a/indra/newview/llinventorymodelbackgroundfetch.cpp
+++ b/indra/newview/llinventorymodelbackgroundfetch.cpp
@@ -549,6 +549,13 @@ void LLInventoryModelBackgroundFetch::onAISFolderCalback(const LLUUID &request_i
{
LL_WARNS() << "Failed to download folder: " << request_id << " Requesting known content separately" << LL_ENDL;
mFetchFolderQueue.push_back(FetchQueueInfo(request_id, FT_CONTENT_RECURSIVE));
+
+ // set folder's version to prevent viewer from trying to request folder indefinetely
+ LLViewerInventoryCategory* cat(gInventory.getCategory(request_id));
+ if (cat->getVersion() == LLViewerInventoryCategory::VERSION_UNKNOWN)
+ {
+ cat->setVersion(0);
+ }
}
}
else