diff options
| author | Erik Kundiman <erik@megapahit.org> | 2025-11-01 11:38:42 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2025-11-01 11:38:42 +0800 |
| commit | 238e0e4e1501c5a82f6798f40e0253848c09645c (patch) | |
| tree | c7809a2cec3090d72b231f782c9132d556acd6c0 /indra/llplugin/llpluginprocessparent.cpp | |
| parent | 0acfb74bbcf801978905db45d326d8538a32b1ed (diff) | |
| parent | f7516a463114e3982b7d4cbd86645fc4369ffce9 (diff) | |
Merge tag 'Second_Life_Release#f7516a46-2025.08' into 2025.082025.08
Diffstat (limited to 'indra/llplugin/llpluginprocessparent.cpp')
| -rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index d6ab52a17a..3deee2fb3e 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -985,15 +985,18 @@ void LLPluginProcessParent::poll(F64 timeout) } } - // Remove instances in the done state from the sInstances map. - LLCoros::LockType lock(*sInstancesMutex); - mapInstances_t::iterator itClean = sInstances.begin(); - while (itClean != sInstances.end()) + if (sInstancesMutex) { - if ((*itClean).second->isDone()) - itClean = sInstances.erase(itClean); - else - ++itClean; + // Remove instances in the done state from the sInstances map. + LLCoros::LockType lock(*sInstancesMutex); + mapInstances_t::iterator itClean = sInstances.begin(); + while (itClean != sInstances.end()) + { + if ((*itClean).second->isDone()) + itClean = sInstances.erase(itClean); + else + ++itClean; + } } } |
