summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-07 15:24:40 -0500
committerDave Parks <davep@lindenlab.com>2022-06-07 15:24:40 -0500
commit99189ff2d5e96434cdc58115bbc03614f8e50773 (patch)
treeabb936b8e0e180f9feefcfa0306364f843913ccd /indra
parent197baebc62d1e4b922730266f77f4e6b555e2cac (diff)
SL-17547 Fix for crash on shutdown introduced in last commit.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltexturefetch.cpp2
-rw-r--r--indra/newview/llviewertexture.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index 2bfdfe1789..0fa425cf22 100644
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -3011,7 +3011,7 @@ bool LLTextureFetch::getRequestFinished(const LLUUID& id, S32& discard_level,
bool LLTextureFetch::updateRequestPriority(const LLUUID& id, F32 priority)
{
LL_PROFILE_ZONE_SCOPED;
- mRequestQueue.post([=]()
+ mRequestQueue.tryPost([=]()
{
LLTextureFetchWorker* worker = getWorker(id);
if (worker)
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index ae480bcc35..b7633545f9 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -653,7 +653,10 @@ void LLViewerTexture::cleanup()
{
notifyAboutMissingAsset();
- LLAppViewer::getTextureFetch()->updateRequestPriority(mID, 0.f);
+ if (LLAppViewer::getTextureFetch())
+ {
+ LLAppViewer::getTextureFetch()->updateRequestPriority(mID, 0.f);
+ }
mFaceList[LLRender::DIFFUSE_MAP].clear();
mFaceList[LLRender::NORMAL_MAP].clear();