aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut
diff options
context:
space:
mode:
authorUbitUmarov2016-07-30 20:56:19 +0100
committerUbitUmarov2016-07-30 20:56:19 +0100
commit9a4afa753ba4887743bdd4053c336258e7a3fd80 (patch)
treefdd2f97ef77c460f4ca4dc2cb1970afe27d6cfac /OpenSim/Region/CoreModules/ServiceConnectorsOut
parent change RegionInfoCache expires control (diff)
downloadopensim-SC-9a4afa753ba4887743bdd4053c336258e7a3fd80.zip
opensim-SC-9a4afa753ba4887743bdd4053c336258e7a3fd80.tar.gz
opensim-SC-9a4afa753ba4887743bdd4053c336258e7a3fd80.tar.bz2
opensim-SC-9a4afa753ba4887743bdd4053c336258e7a3fd80.tar.xz
fix NULL references added in recente changes in standalone mode
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
index 363adde..21f7567 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
@@ -127,7 +127,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
127 127
128 public void PostInitialise() 128 public void PostInitialise()
129 { 129 {
130 ((ISharedRegionModule)m_LocalGridService).PostInitialise(); 130 if (m_Enabled)
131 ((ISharedRegionModule)m_LocalGridService).PostInitialise();
131 } 132 }
132 133
133 public void Close() 134 public void Close()
@@ -137,14 +138,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
137 public void AddRegion(Scene scene) 138 public void AddRegion(Scene scene)
138 { 139 {
139 if (m_Enabled) 140 if (m_Enabled)
141 {
140 scene.RegisterModuleInterface<IGridService>(this); 142 scene.RegisterModuleInterface<IGridService>(this);
141 143 ((ISharedRegionModule)m_LocalGridService).AddRegion(scene);
142 ((ISharedRegionModule)m_LocalGridService).AddRegion(scene); 144 }
143 } 145 }
144 146
145 public void RemoveRegion(Scene scene) 147 public void RemoveRegion(Scene scene)
146 { 148 {
147 ((ISharedRegionModule)m_LocalGridService).RemoveRegion(scene); 149 if (m_Enabled)
150 ((ISharedRegionModule)m_LocalGridService).RemoveRegion(scene);
148 } 151 }
149 152
150 public void RegionLoaded(Scene scene) 153 public void RegionLoaded(Scene scene)