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);
|
m_Cache.Cache(asset);
|
||||||
|
|
||||||
string id;
|
string id;
|
||||||
if (IsHG(asset.ID))
|
if (isHG)
|
||||||
{
|
{
|
||||||
if (m_AssetPerms.AllowedExport(asset.Type))
|
if (m_AssetPerms.AllowedExport(asset.Type))
|
||||||
id = m_HGService.Store(asset);
|
id = m_HGService.Store(asset);
|
||||||
|
@ -369,7 +369,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
||||||
|
|
||||||
asset.ID = id;
|
asset.ID = id;
|
||||||
|
|
||||||
if (m_Cache != null)
|
if (isHG && m_Cache != null)
|
||||||
m_Cache.Cache(asset);
|
m_Cache.Cache(asset);
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
|
|
Loading…
Reference in New Issue