aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut
diff options
context:
space:
mode:
authorUbitUmarov2016-07-30 22:44:41 +0100
committerUbitUmarov2016-07-30 22:44:41 +0100
commit7b55348360dcd879ee53c93cc983ed1d0224a604 (patch)
tree43414a9480c4364277238ed5ae5406640eecd27c /OpenSim/Region/CoreModules/ServiceConnectorsOut
parent do not set m_RegionInfoCache null on each LocalGridServicesConnector constru... (diff)
downloadopensim-SC-7b55348360dcd879ee53c93cc983ed1d0224a604.zip
opensim-SC-7b55348360dcd879ee53c93cc983ed1d0224a604.tar.gz
opensim-SC-7b55348360dcd879ee53c93cc983ed1d0224a604.tar.bz2
opensim-SC-7b55348360dcd879ee53c93cc983ed1d0224a604.tar.xz
still on jenkins
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
index 70dc7a3..22e3ecc 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
@@ -148,12 +148,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
148 return; 148 return;
149 149
150 scene.RegisterModuleInterface<IGridService>(this); 150 scene.RegisterModuleInterface<IGridService>(this);
151
152 GridRegion r = new GridRegion(scene.RegionInfo);
153
154 m_RegionInfoCache.CacheLocal(r);
155
156 scene.EventManager.OnRegionUp += OnRegionUp;
157 } 151 }
158 152
159 public void RemoveRegion(Scene scene) 153 public void RemoveRegion(Scene scene)
@@ -167,6 +161,18 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
167 161
168 public void RegionLoaded(Scene scene) 162 public void RegionLoaded(Scene scene)
169 { 163 {
164 if (!m_Enabled)
165 return;
166
167 GridRegion r = new GridRegion(scene.RegionInfo);
168
169 // tests seem not to init this correctly, so brute force
170 if( m_RegionInfoCache == null)
171 m_RegionInfoCache = new RegionInfoCache();
172
173 m_RegionInfoCache.CacheLocal(r);
174
175 scene.EventManager.OnRegionUp += OnRegionUp;
170 } 176 }
171 177
172 #endregion 178 #endregion