From a0d79e621cc8ee4935dfc2816da75db9c23c1b84 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 30 Jan 2010 15:43:10 -0800 Subject: Bug fix: change HGBroker to a INonSharedRegionModule --- .../ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs') diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs index 811569f..1e51187 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs @@ -40,12 +40,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory { public abstract class BaseInventoryConnector : IInventoryService { - protected InventoryCache m_cache; + protected static InventoryCache m_cache; + private static bool m_Initialized; protected virtual void Init(IConfigSource source) { - m_cache = new InventoryCache(); - m_cache.Init(source, this); + if (!m_Initialized) + { + m_cache = new InventoryCache(); + m_cache.Init(source, this); + m_Initialized = true; + } } /// -- cgit v1.1