* Temporarily, stop the exception of mantis #951 from killing the entire client session.

0.6.0-stable
Justin Clarke Casey 2008-04-13 22:25:23 +00:00
parent 451a5bbf30
commit 7dec345d9a
1 changed files with 13 additions and 1 deletions

View File

@ -3264,9 +3264,21 @@ namespace OpenSim.Region.ClientStack
handlerSetAppearance = OnSetAppearance; handlerSetAppearance = OnSetAppearance;
if (handlerSetAppearance != null) if (handlerSetAppearance != null)
{
// Temporarily protect ourselves from the mantis #951 failure.
// However, we could do this for several other handlers where a failure isn't terminal
// for the client session anyway, in order to protect ourselves against bad code in plugins
try
{ {
handlerSetAppearance(appear.ObjectData.TextureEntry, appear.VisualParam); handlerSetAppearance(appear.ObjectData.TextureEntry, appear.VisualParam);
} }
catch (Exception e)
{
m_log.ErrorFormat(
"[CLIENT VIEW]: AgentSetApperance packet handler threw an exception, {0}",
e);
}
}
break; break;
case PacketType.AgentIsNowWearing: case PacketType.AgentIsNowWearing: