diff options
Bug fix on posting assets onto foreign users inventory. Check that the key is already in the local asset map before adding it.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Hypergrid')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs b/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs index 928b7c8..3acaa21 100644 --- a/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs +++ b/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs | |||
@@ -355,7 +355,8 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid | |||
355 | if (success) | 355 | if (success) |
356 | { | 356 | { |
357 | m_log.Debug("[HGScene]: Successfully posted item to remote asset server " + userAssetURL); | 357 | m_log.Debug("[HGScene]: Successfully posted item to remote asset server " + userAssetURL); |
358 | m_assetMap.Add(itemID, asscli); | 358 | if (!m_assetMap.ContainsKey(itemID)) |
359 | m_assetMap.Add(itemID, asscli); | ||
359 | } | 360 | } |
360 | else | 361 | else |
361 | m_log.Warn("[HGScene]: Could not post asset to remote asset server " + userAssetURL); | 362 | m_log.Warn("[HGScene]: Could not post asset to remote asset server " + userAssetURL); |