summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturectrl.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-11 21:20:30 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-11 21:20:30 +0300
commitaf30c8c95b81e99c76bd5e08dcaab4c31dfdcac1 (patch)
tree44898e0a15a06085cccde8cfe7f696432a04e0b2 /indra/newview/lltexturectrl.cpp
parent8171224a6510ac8b984dace5f10a6f92cb1e2942 (diff)
SL-19533 Don't try to restart fetchexcessively
No real point restarting, but due to significant changes decided to keep this around and raise asserts instead of removing.
Diffstat (limited to 'indra/newview/lltexturectrl.cpp')
-rw-r--r--indra/newview/lltexturectrl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp
index 0ce82a1297..6f29d45f6b 100644
--- a/indra/newview/lltexturectrl.cpp
+++ b/indra/newview/lltexturectrl.cpp
@@ -1478,8 +1478,11 @@ BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
showPicker(FALSE);
//grab textures first...
LLInventoryModelBackgroundFetch::instance().start(gInventory.findCategoryUUIDForType(LLFolderType::FT_TEXTURE));
- //...then start full inventory fetch.
- LLInventoryModelBackgroundFetch::instance().start();
+ //...then start full inventory fetch (should have been done on startup, but just in case.
+ if (!LLInventoryModelBackgroundFetch::instance().inventoryFetchStarted())
+ {
+ LLInventoryModelBackgroundFetch::instance().start();
+ }
handled = TRUE;
}
else