From 5f9fe87808bdf48186ed295e735bf2dced7e4e33 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Tue, 10 Dec 2024 09:09:07 -0800 Subject: Fix for assert (and potential crash) in LLAvatarPropertiesProcessor coroutine (#3253) --- indra/newview/llavatarpropertiesprocessor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'indra/newview/llavatarpropertiesprocessor.cpp') diff --git a/indra/newview/llavatarpropertiesprocessor.cpp b/indra/newview/llavatarpropertiesprocessor.cpp index 299cc5ed64..6277e65b2d 100644 --- a/indra/newview/llavatarpropertiesprocessor.cpp +++ b/indra/newview/llavatarpropertiesprocessor.cpp @@ -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**) -- cgit v1.2.3