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

@ -10601,11 +10601,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
MapItemRequest handlerMapItemRequest = OnMapItemRequest;
if (handlerMapItemRequest != null)
{
handlerMapItemRequest(this, mirpk.AgentData.Flags, mirpk.AgentData.EstateID,
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;
}