diff options
author | Diva Canto | 2010-01-30 15:43:10 -0800 |
---|---|---|
committer | Diva Canto | 2010-01-30 15:43:10 -0800 |
commit | a0d79e621cc8ee4935dfc2816da75db9c23c1b84 (patch) | |
tree | b4850a6ee90f4cd98f68109dad29b7b9c8c9f242 /OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs | |
parent | * HGScene is no more. (diff) | |
download | opensim-SC_OLD-a0d79e621cc8ee4935dfc2816da75db9c23c1b84.zip opensim-SC_OLD-a0d79e621cc8ee4935dfc2816da75db9c23c1b84.tar.gz opensim-SC_OLD-a0d79e621cc8ee4935dfc2816da75db9c23c1b84.tar.bz2 opensim-SC_OLD-a0d79e621cc8ee4935dfc2816da75db9c23c1b84.tar.xz |
Bug fix: change HGBroker to a INonSharedRegionModule
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs | 11 |
1 files changed, 8 insertions, 3 deletions
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 | |||
40 | { | 40 | { |
41 | public abstract class BaseInventoryConnector : IInventoryService | 41 | public abstract class BaseInventoryConnector : IInventoryService |
42 | { | 42 | { |
43 | protected InventoryCache m_cache; | 43 | protected static InventoryCache m_cache; |
44 | private static bool m_Initialized; | ||
44 | 45 | ||
45 | protected virtual void Init(IConfigSource source) | 46 | protected virtual void Init(IConfigSource source) |
46 | { | 47 | { |
47 | m_cache = new InventoryCache(); | 48 | if (!m_Initialized) |
48 | m_cache.Init(source, this); | 49 | { |
50 | m_cache = new InventoryCache(); | ||
51 | m_cache.Init(source, this); | ||
52 | m_Initialized = true; | ||
53 | } | ||
49 | } | 54 | } |
50 | 55 | ||
51 | /// <summary> | 56 | /// <summary> |