diff options
author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2023-05-11 21:21:01 -0700 |
---|---|---|
committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2023-05-11 21:21:01 -0700 |
commit | ad4118f6ceaf1c22b22d58825924aad5575319f9 (patch) | |
tree | a1227572853491f2e89fb0db128230c40248b47d /indra/llimage/llimageworker.cpp | |
parent | 339e02ef3311ad5c1197dfca2955a0c202b7c408 (diff) | |
parent | 06bdee663433bf5b12eddcbcfcb8785546354c28 (diff) |
Merge branch 'DRTVWR-559' into DRTVWR-583
Diffstat (limited to 'indra/llimage/llimageworker.cpp')
-rw-r--r-- | indra/llimage/llimageworker.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llimage/llimageworker.cpp b/indra/llimage/llimageworker.cpp index 0093958e6d..520c81a8ec 100644 --- a/indra/llimage/llimageworker.cpp +++ b/indra/llimage/llimageworker.cpp @@ -93,13 +93,18 @@ LLImageDecodeThread::handle_t LLImageDecodeThread::decodeImage( LL_PROFILE_ZONE_SCOPED_CATEGORY_TEXTURE; // Instantiate the ImageRequest right in the lambda, why not? - mThreadPool->getQueue().post( + bool posted = mThreadPool->getQueue().post( [req = ImageRequest(image, discard, needs_aux, responder)] () mutable { auto done = req.processRequest(); req.finishRequest(done); }); + if (! posted) + { + LL_DEBUGS() << "Tried to start decoding on shutdown" << LL_ENDL; + // should this return 0? + } // It's important to our consumer (LLTextureFetchWorker) that we return a // nonzero handle. It is NOT important that the nonzero handle be unique: |