aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/LocalNeighbourServiceConnector.cs1
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/RemoteNeighourServiceConnector.cs4
2 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/LocalNeighbourServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/LocalNeighbourServiceConnector.cs
index 7f6186c..cfebba3 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/LocalNeighbourServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/LocalNeighbourServiceConnector.cs
@@ -86,7 +86,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Neighbour
86 86
87 public void AddRegion(Scene scene) 87 public void AddRegion(Scene scene)
88 { 88 {
89 // Always add
90 m_Scenes.Add(scene); 89 m_Scenes.Add(scene);
91 90
92 if (!m_Enabled) 91 if (!m_Enabled)
diff --git a/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/RemoteNeighourServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/RemoteNeighourServiceConnector.cs
index b0bd428..8ea4ca7 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/RemoteNeighourServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectors/Neighbour/RemoteNeighourServiceConnector.cs
@@ -113,13 +113,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Neighbour
113 if (!m_Enabled) 113 if (!m_Enabled)
114 return; 114 return;
115 115
116 m_MapService = scene.CommsManager.GridService;
117 m_LocalService.AddRegion(scene);
116 scene.RegisterModuleInterface<INeighbourService>(this); 118 scene.RegisterModuleInterface<INeighbourService>(this);
117 } 119 }
118 120
119 public void RemoveRegion(Scene scene) 121 public void RemoveRegion(Scene scene)
120 { 122 {
121 if (m_Enabled && m_Scenes.Contains(scene)) 123 if (m_Enabled && m_Scenes.Contains(scene))
122 m_Scenes.Remove(scene); 124 m_LocalService.RemoveRegion(scene);
123 } 125 }
124 126
125 public void RegionLoaded(Scene scene) 127 public void RegionLoaded(Scene scene)