aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs4
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs5
2 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
index 58bd4ea..47792a2 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
51 private static string LogHeader = "[LOCAL GRID SERVICE CONNECTOR]"; 51 private static string LogHeader = "[LOCAL GRID SERVICE CONNECTOR]";
52 52
53 private IGridService m_GridService; 53 private IGridService m_GridService;
54 private RegionInfoCache m_RegionInfoCache = null; 54 static private RegionInfoCache m_RegionInfoCache = null;
55 55
56 private bool m_Enabled; 56 private bool m_Enabled;
57 57
@@ -95,7 +95,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
95 95
96 private bool InitialiseService(IConfigSource source, RegionInfoCache ric) 96 private bool InitialiseService(IConfigSource source, RegionInfoCache ric)
97 { 97 {
98 if(ric == null) 98 if(ric == null && m_RegionInfoCache == null)
99 m_RegionInfoCache = new RegionInfoCache(); 99 m_RegionInfoCache = new RegionInfoCache();
100 else 100 else
101 m_RegionInfoCache = ric; 101 m_RegionInfoCache = ric;
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
index 21f7567..077eb97 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
@@ -56,7 +56,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
56 private IGridService m_LocalGridService; 56 private IGridService m_LocalGridService;
57 private IGridService m_RemoteGridService; 57 private IGridService m_RemoteGridService;
58 58
59 private RegionInfoCache m_RegionInfoCache = new RegionInfoCache(); 59 static private RegionInfoCache m_RegionInfoCache;
60 60
61 public RemoteGridServicesConnector() 61 public RemoteGridServicesConnector()
62 { 62 {
@@ -122,6 +122,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
122 return false; 122 return false;
123 } 123 }
124 124
125 if(m_RegionInfoCache == null)
126 m_RegionInfoCache = new RegionInfoCache();
127
125 return true; 128 return true;
126 } 129 }
127 130