Fix for assert (and potential crash) in LLAvatarPropertiesProcessor coroutine (#3253)

master
Dave Parks 2024-12-10 09:09:07 -08:00 committed by GitHub
parent b76ea8f1d7
commit 5f9fe87808
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -41,6 +41,7 @@
#include "lltrans.h"
#include "llui.h" // LLUI::getLanguage()
#include "message.h"
#include "llappviewer.h"
LLAvatarPropertiesProcessor::LLAvatarPropertiesProcessor()
{
@ -367,7 +368,11 @@ void LLAvatarPropertiesProcessor::requestAvatarPropertiesCoro(std::string cap_ur
avatar_data.picks_list.emplace_back(pick_data["id"].asUUID(), pick_data["name"].asString());
}
inst.notifyObservers(avatar_id, &avatar_data, type);
LLAppViewer::instance()->postToMainCoro(
[avatar_id, avatar_data, type]()
{
LLAvatarPropertiesProcessor::instance().notifyObservers(avatar_id, (void*) &avatar_data, type);
});
}
void LLAvatarPropertiesProcessor::processAvatarLegacyPropertiesReply(LLMessageSystem* msg, void**)