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

viewer-2-initial-appearance
Diva Canto 2011-01-07 12:32:47 -08:00
parent 02e661f8dd
commit a1c5de0f94
1 changed files with 4 additions and 0 deletions

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;