diff options
author | Melanie | 2010-08-25 23:22:23 +0100 |
---|---|---|
committer | Melanie | 2010-08-25 23:22:23 +0100 |
commit | 252e159340575cb75b35091ff5d6c5b8fa9beed7 (patch) | |
tree | 8e77d58e98ad74a47daec298d7488e19e6797748 /OpenSim/Services | |
parent | Prevent an object disposed exception that made forms comms unreliable. After (diff) | |
parent | Prevent an object disposed exception that made forms comms unreliable. After (diff) | |
download | opensim-SC-252e159340575cb75b35091ff5d6c5b8fa9beed7.zip opensim-SC-252e159340575cb75b35091ff5d6c5b8fa9beed7.tar.gz opensim-SC-252e159340575cb75b35091ff5d6c5b8fa9beed7.tar.bz2 opensim-SC-252e159340575cb75b35091ff5d6c5b8fa9beed7.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/InventoryService/InventoryService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs index fbcd663..86bca79 100644 --- a/OpenSim/Services/InventoryService/InventoryService.cs +++ b/OpenSim/Services/InventoryService/InventoryService.cs | |||
@@ -268,15 +268,22 @@ namespace OpenSim.Services.InventoryService | |||
268 | 268 | ||
269 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) | 269 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) |
270 | { | 270 | { |
271 | // m_log.DebugFormat("[INVENTORY SERVICE]: Looking for folder type {0} for user {1}", type, userID); | ||
272 | |||
271 | InventoryFolderBase root = m_Database.getUserRootFolder(userID); | 273 | InventoryFolderBase root = m_Database.getUserRootFolder(userID); |
272 | if (root != null) | 274 | if (root != null) |
273 | { | 275 | { |
274 | List<InventoryFolderBase> folders = RequestSubFolders(root.ID); | 276 | List<InventoryFolderBase> folders = RequestSubFolders(root.ID); |
275 | 277 | ||
276 | foreach (InventoryFolderBase folder in folders) | 278 | foreach (InventoryFolderBase folder in folders) |
277 | { | 279 | { |
278 | if (folder.Type == (short)type) | 280 | if (folder.Type == (short)type) |
281 | { | ||
282 | // m_log.DebugFormat( | ||
283 | // "[INVENTORY SERVICE]: Found folder {0} type {1}", folder.Name, (AssetType)folder.Type); | ||
284 | |||
279 | return folder; | 285 | return folder; |
286 | } | ||
280 | } | 287 | } |
281 | } | 288 | } |
282 | 289 | ||