* Temporary fix to stop a problem in getting neighbour info in the world map module from crashing the entire server

0.6.0-stable
Justin Clarke Casey 2008-11-04 19:56:02 +00:00
parent 78bfe7a3e3
commit f793f93817
1 changed files with 11 additions and 1 deletions

View File

@ -540,7 +540,17 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
}
if (httpserver.Length == 0)
{
RegionInfo mreg = m_scene.SceneGridService.RequestNeighbouringRegionInfo(regionhandle);
RegionInfo mreg = null;
try
{
mreg = m_scene.SceneGridService.RequestNeighbouringRegionInfo(regionhandle);
}
catch (Exception e)
{
m_log.WarnFormat("[WorldMap]: Requesting neighbour region info failed with exception {0}", e);
}
if (mreg != null)
{
httpserver = "http://" + mreg.ExternalEndPoint.Address.ToString() + ":" + mreg.HttpPort + "/MAP/MapItems/" + regionhandle.ToString();