add a try catch on HandleMapItemRequest

0.9.1.0-post-fixes
UbitUmarov 2019-01-28 04:38:27 +00:00
parent cc27168cc1
commit 52e5f58c9a
1 changed files with 9 additions and 2 deletions

View File

@ -10600,12 +10600,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//m_log.Debug(mirpk.ToString());
MapItemRequest handlerMapItemRequest = OnMapItemRequest;
if (handlerMapItemRequest != null)
{
try
{
handlerMapItemRequest(this, mirpk.AgentData.Flags, mirpk.AgentData.EstateID,
mirpk.AgentData.Godlike, mirpk.RequestData.ItemType,
mirpk.RequestData.RegionHandle);
}
catch( Exception e)
{
m_log.ErrorFormat("{0} HandleMapItemRequest exception: {1}", LogHeader, e.Message);
}
}
return true;
}