Try to fix a IAR problem reported by nebadon, where save iar seems stuck forever.

This commit is contained in:
Diva Canto
2011-01-07 12:32:47 -08:00
parent 02e661f8dd
commit a1c5de0f94

View File

@@ -86,6 +86,10 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="assetUuids">The assets gathered</param>
public void GatherAssetUuids(UUID assetUuid, AssetType assetType, IDictionary<UUID, AssetType> assetUuids)
{
// avoid infinite loops
if (assetUuids.ContainsKey(assetUuid))
return;
try
{
assetUuids[assetUuid] = assetType;