aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
index 887a8da..c95068b 100644
--- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
@@ -135,7 +135,18 @@ namespace OpenSim.Region.Environment.Scenes
135 regionCommsHost.OnAvatarCrossingIntoRegion -= AgentCrossing; 135 regionCommsHost.OnAvatarCrossingIntoRegion -= AgentCrossing;
136 regionCommsHost.OnCloseAgentConnection -= CloseConnection; 136 regionCommsHost.OnCloseAgentConnection -= CloseConnection;
137 regionCommsHost.OnGetLandData -= FetchLandData; 137 regionCommsHost.OnGetLandData -= FetchLandData;
138 m_commsProvider.GridService.DeregisterRegion(m_regionInfo); 138
139 try
140 {
141 m_commsProvider.GridService.DeregisterRegion(m_regionInfo);
142 }
143 catch (Exception e)
144 {
145 m_log.ErrorFormat(
146 "[GRID]: Deregistration of region {0} from the grid failed - {1}. Continuing",
147 m_regionInfo.RegionName, e);
148 }
149
139 regionCommsHost = null; 150 regionCommsHost = null;
140 } 151 }
141 } 152 }