DEV-52702 Avatar search in Viewer hangs with Searching... when searching for invalid characters in Viewer

meow-7.2.2
Leyla Farazha 2010-08-19 15:48:51 -07:00
parent eaf2359782
commit ab320a12e6
1 changed files with 5 additions and 2 deletions

View File

@ -393,7 +393,9 @@ public:
//LLSDSerialize::toPrettyXML(content, ss);
//llinfos << ss.str() << llendl;
if (isGoodStatus(status))
// in case of invalid characters, the avatar picker returns a 400
// just set it to process so it displays 'not found'
if (isGoodStatus(status) || status == 400)
{
LLFloaterAvatarPicker* floater =
LLFloaterReg::findTypedInstance<LLFloaterAvatarPicker>("avatar_picker");
@ -405,7 +407,8 @@ public:
else
{
llinfos << "avatar picker failed " << status
<< " reason " << reason << llendl;
<< " reason " << reason << llendl;
}
}
};