Skip to content

Commit 5f9fe87

Browse files
Fix for assert (and potential crash) in LLAvatarPropertiesProcessor coroutine (#3253)
1 parent b76ea8f commit 5f9fe87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

indra/newview/llavatarpropertiesprocessor.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "lltrans.h"
4242
#include "llui.h" // LLUI::getLanguage()
4343
#include "message.h"
44+
#include "llappviewer.h"
4445

4546
LLAvatarPropertiesProcessor::LLAvatarPropertiesProcessor()
4647
{
@@ -367,7 +368,11 @@ void LLAvatarPropertiesProcessor::requestAvatarPropertiesCoro(std::string cap_ur
367368
avatar_data.picks_list.emplace_back(pick_data["id"].asUUID(), pick_data["name"].asString());
368369
}
369370

370-
inst.notifyObservers(avatar_id, &avatar_data, type);
371+
LLAppViewer::instance()->postToMainCoro(
372+
[avatar_id, avatar_data, type]()
373+
{
374+
LLAvatarPropertiesProcessor::instance().notifyObservers(avatar_id, (void*) &avatar_data, type);
375+
});
371376
}
372377

373378
void LLAvatarPropertiesProcessor::processAvatarLegacyPropertiesReply(LLMessageSystem* msg, void**)

0 commit comments

Comments
 (0)