Bug fix on posting assets onto foreign users inventory. Check that the key is already in the local asset map before adding it.

0.6.3-post-fixes
diva 2009-01-30 23:53:41 +00:00
parent 36221a2c19
commit e7a9ece410
1 changed files with 2 additions and 1 deletions

View File

@ -355,7 +355,8 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
if (success)
{
m_log.Debug("[HGScene]: Successfully posted item to remote asset server " + userAssetURL);
m_assetMap.Add(itemID, asscli);
if (!m_assetMap.ContainsKey(itemID))
m_assetMap.Add(itemID, asscli);
}
else
m_log.Warn("[HGScene]: Could not post asset to remote asset server " + userAssetURL);