From 90b899c4e4be9c87675dc373c7d8eccd1ac1e75d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 2 Aug 2016 15:56:44 +0100 Subject: do not try to cache same asset twice with hg enabled --- .../Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset') diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs index 96322e9..ade6381 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs @@ -354,7 +354,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset m_Cache.Cache(asset); string id; - if (IsHG(asset.ID)) + if (isHG) { if (m_AssetPerms.AllowedExport(asset.Type)) id = m_HGService.Store(asset); @@ -369,7 +369,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset asset.ID = id; - if (m_Cache != null) + if (isHG && m_Cache != null) m_Cache.Cache(asset); return id; -- cgit v1.1