Enclose the inter-region IM sending in a try-catch for now to find possibly missed exceptions.

0.6.1-post-fixes
Homer Horwitz 2008-11-22 18:33:02 +00:00
parent 6566da2962
commit a7b01140db
1 changed files with 192 additions and 182 deletions

View File

@ -180,6 +180,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
protected virtual XmlRpcResponse processXMLRPCGridInstantMessage(XmlRpcRequest request)
{
bool successful = false;
// TODO: For now, as IMs seem to be a bit unreliable on OSGrid, catch all exception that
// happen here and aren't caught and log them.
try {
// various rational defaults
UUID fromAgentID = UUID.Zero;
UUID toAgentID = UUID.Zero;
@ -373,6 +377,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
m_Scenes[0].EventManager.TriggerUnhandledInstantMessage(gim);
}
}
}
catch (Exception e)
{
m_log.Error("[INSTANT MESSAGE]: Caught unexpected exception:", e);
successful = false;
}
//Send response back to region calling if it was successful
// calling region uses this to know when to look up a user's location again.