do not try to cache same asset twice with hg enabled
parent
04ac81a46e
commit
90b899c4e4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue