diff options
author | Diva Canto | 2010-01-03 11:44:57 -0800 |
---|---|---|
committer | Diva Canto | 2010-01-03 11:44:57 -0800 |
commit | 99efa99585639c94fdb484681663ac7b6f03538e (patch) | |
tree | f74eb3e9c080e381d37b2d936ba9b0c091196f56 /OpenSim/Region/CoreModules/ServiceConnectorsOut | |
parent | * Changed ISimulation interface to take a GridRegion as input arg instead of ... (diff) | |
download | opensim-SC_OLD-99efa99585639c94fdb484681663ac7b6f03538e.zip opensim-SC_OLD-99efa99585639c94fdb484681663ac7b6f03538e.tar.gz opensim-SC_OLD-99efa99585639c94fdb484681663ac7b6f03538e.tar.bz2 opensim-SC_OLD-99efa99585639c94fdb484681663ac7b6f03538e.tar.xz |
Successfully logged into a grid.
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | 24 |
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 | } |