diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-03-27 21:24:21 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-03-27 21:27:50 +0300 |
commit | 0eff9756494a268f6aa68b66ce4d09cb5aa5460a (patch) | |
tree | f3a9c040d8d9ce7d743ed8290ab1698e546c3ccc /indra/newview/llviewerinventory.cpp | |
parent | b00e2da9e23f4dad9c754ce479253ac07eeec154 (diff) |
SL-18003 Basic dupplicate prevention
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r-- | indra/newview/llviewerinventory.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index 6c7e815b04..6bd86f7902 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -659,7 +659,6 @@ bool LLViewerInventoryCategory::fetch() mDescendentsRequested.reset(); mDescendentsRequested.setTimerExpirySec(FETCH_TIMER_EXPIRY); - std::string url; if (gAgent.getRegion()) { @@ -678,6 +677,24 @@ bool LLViewerInventoryCategory::fetch() return false; } +void LLViewerInventoryCategory::setFetching(bool fetching) +{ + if (fetching) + { + if ((VERSION_UNKNOWN == getVersion()) + && mDescendentsRequested.hasExpired()) + { + const F32 FETCH_TIMER_EXPIRY = 10.0f; + mDescendentsRequested.reset(); + mDescendentsRequested.setTimerExpirySec(FETCH_TIMER_EXPIRY); + } + } + else + { + mDescendentsRequested.stop(); + } +} + S32 LLViewerInventoryCategory::getViewerDescendentCount() const { LLInventoryModel::cat_array_t* cats; |