Enclose the inter-region IM sending in a try-catch for now to find possibly missed exceptions.
parent
6566da2962
commit
a7b01140db
|
@ -180,6 +180,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
|
||||||
protected virtual XmlRpcResponse processXMLRPCGridInstantMessage(XmlRpcRequest request)
|
protected virtual XmlRpcResponse processXMLRPCGridInstantMessage(XmlRpcRequest request)
|
||||||
{
|
{
|
||||||
bool successful = false;
|
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
|
// various rational defaults
|
||||||
UUID fromAgentID = UUID.Zero;
|
UUID fromAgentID = UUID.Zero;
|
||||||
UUID toAgentID = UUID.Zero;
|
UUID toAgentID = UUID.Zero;
|
||||||
|
@ -373,6 +377,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
|
||||||
m_Scenes[0].EventManager.TriggerUnhandledInstantMessage(gim);
|
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
|
//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.
|
// calling region uses this to know when to look up a user's location again.
|
||||||
|
|
Loading…
Reference in New Issue