aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Capabilities/Handlers/FetchInventory
diff options
context:
space:
mode:
authorDiva Canto2015-06-01 15:11:30 -0700
committerDiva Canto2015-06-01 15:11:30 -0700
commit7effd3b1584ec132a8ffa75f8769a010b2021279 (patch)
tree06418431701e2b3bb952649689e95e8bcf08f348 /OpenSim/Capabilities/Handlers/FetchInventory
parentImprove configuration description for llCastRay V3. (diff)
downloadopensim-SC_OLD-7effd3b1584ec132a8ffa75f8769a010b2021279.zip
opensim-SC_OLD-7effd3b1584ec132a8ffa75f8769a010b2021279.tar.gz
opensim-SC_OLD-7effd3b1584ec132a8ffa75f8769a010b2021279.tar.bz2
opensim-SC_OLD-7effd3b1584ec132a8ffa75f8769a010b2021279.tar.xz
Mantis #7594. This should be functionally equivalent to what it was, but just in case mono has a bug in List<T>.Find, here is the Linq equivalent of distinct-ness.
Diffstat (limited to 'OpenSim/Capabilities/Handlers/FetchInventory')
-rw-r--r--OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
index 810096f..f968fdc 100644
--- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
+++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Linq;
31using System.Reflection; 32using System.Reflection;
32using log4net; 33using log4net;
33using Nini.Config; 34using Nini.Config;
@@ -110,8 +111,7 @@ namespace OpenSim.Capabilities.Handlers
110 } 111 }
111 112
112 // Filter duplicate folder ids that bad viewers may send 113 // Filter duplicate folder ids that bad viewers may send
113 if (folders.Find(f => f.folder_id == llsdRequest.folder_id) == null) 114 folders = (List<LLSDFetchInventoryDescendents>)folders.GroupBy(f => f.folder_id).Select(n => n.First());
114 folders.Add(llsdRequest);
115 } 115 }
116 116
117 if (folders.Count > 0) 117 if (folders.Count > 0)