aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs24
1 files changed, 14 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
index b7dc283..c9cc368 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
@@ -103,6 +103,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
103 103
104 public void AddRegion(Scene scene) 104 public void AddRegion(Scene scene)
105 { 105 {
106 if (!m_enabled)
107 return;
108
109 if (!initialized)
110 {
111 InitOnce(scene);
112 initialized = true;
113 }
114 InitEach(scene);
106 } 115 }
107 116
108 public void RemoveRegion(Scene scene) 117 public void RemoveRegion(Scene scene)
@@ -116,15 +125,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
116 125
117 public void RegionLoaded(Scene scene) 126 public void RegionLoaded(Scene scene)
118 { 127 {
119 if (m_enabled) 128 if (!m_enabled)
120 { 129 return;
121 if (!initialized) 130
122 { 131 m_hyperlinkService = m_aScene.RequestModuleInterface<IHyperlinkService>();
123 InitOnce(scene); 132
124 initialized = true;
125 }
126 InitEach(scene);
127 }
128 } 133 }
129 134
130 public Type ReplaceableInterface 135 public Type ReplaceableInterface
@@ -148,7 +153,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
148 m_localBackend = new LocalSimulationConnectorModule(); 153 m_localBackend = new LocalSimulationConnectorModule();
149 m_commsManager = scene.CommsManager; 154 m_commsManager = scene.CommsManager;
150 m_aScene = scene; 155 m_aScene = scene;
151 m_hyperlinkService = m_aScene.RequestModuleInterface<IHyperlinkService>();
152 //m_regionClient = new RegionToRegionClient(m_aScene, m_hyperlinkService); 156 //m_regionClient = new RegionToRegionClient(m_aScene, m_hyperlinkService);
153 m_thisIP = Util.GetHostFromDNS(scene.RegionInfo.ExternalHostName); 157 m_thisIP = Util.GetHostFromDNS(scene.RegionInfo.ExternalHostName);
154 } 158 }