do not try to cache same asset twice with hg enabled

LSLKeyTest
UbitUmarov 2016-08-02 15:56:44 +01:00
parent 04ac81a46e
commit 90b899c4e4
1 changed files with 2 additions and 2 deletions

View File

@ -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;