diff options
author | Diva Canto | 2015-06-01 18:57:01 -0700 |
---|---|---|
committer | Diva Canto | 2015-06-01 18:57:01 -0700 |
commit | 442c025335ce9b4e9590f76c1490962044e7ea39 (patch) | |
tree | 03d44b4b61f90a7604c7bd588aa3ce27325576e3 /OpenSim | |
parent | More on mantis #7594, this a=time addressing the reported exception, which se... (diff) | |
download | opensim-SC-442c025335ce9b4e9590f76c1490962044e7ea39.zip opensim-SC-442c025335ce9b4e9590f76c1490962044e7ea39.tar.gz opensim-SC-442c025335ce9b4e9590f76c1490962044e7ea39.tar.bz2 opensim-SC-442c025335ce9b4e9590f76c1490962044e7ea39.tar.xz |
Mantis #7594. Fixing the broken code I just introduced.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs index fdbe1f4..0c83b26 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | |||
@@ -111,7 +111,10 @@ namespace OpenSim.Capabilities.Handlers | |||
111 | } | 111 | } |
112 | 112 | ||
113 | // Filter duplicate folder ids that bad viewers may send | 113 | // Filter duplicate folder ids that bad viewers may send |
114 | folders = (List<LLSDFetchInventoryDescendents>)folders.GroupBy(f => f.folder_id).Select(n => n.First()); | 114 | var unique = folders.GroupBy(f => f.folder_id).Select(n => n.First()); |
115 | folders.Clear(); | ||
116 | foreach (var f in unique) | ||
117 | folders.Add(f); | ||
115 | } | 118 | } |
116 | 119 | ||
117 | if (folders.Count > 0) | 120 | if (folders.Count > 0) |