From f793f93817c76e1a737dad891de81320452f308d Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 4 Nov 2008 19:56:02 +0000 Subject: * Temporary fix to stop a problem in getting neighbour info in the world map module from crashing the entire server --- .../Environment/Modules/World/WorldMap/WorldMapModule.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/World/WorldMap') diff --git a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs index 96061ba..7e5b9d1 100644 --- a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs @@ -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(); -- cgit v1.1