mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Mantis #7594: putting things as they were before regarding duplicate removal. Also added test to check that duplicates are being removed. The test passes. I have no idea how duplicates would not be removed, as reported in the mantis.
This commit is contained in:
@@ -111,10 +111,9 @@ namespace OpenSim.Capabilities.Handlers
|
||||
}
|
||||
|
||||
// Filter duplicate folder ids that bad viewers may send
|
||||
var unique = folders.GroupBy(f => f.folder_id).Select(n => n.First());
|
||||
folders.Clear();
|
||||
foreach (var f in unique)
|
||||
folders.Add(f);
|
||||
if (folders.Find(f => f.folder_id == llsdRequest.folder_id) == null)
|
||||
folders.Add(llsdRequest);
|
||||
|
||||
}
|
||||
|
||||
if (folders.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user