diff options
author | UbitUmarov | 2018-07-14 14:09:56 +0100 |
---|---|---|
committer | UbitUmarov | 2018-07-14 14:09:56 +0100 |
commit | 770f59ff87f109a78e038e646324defe625f7b92 (patch) | |
tree | 31a649bca7468f985ff461fa8317d0c1097eb0c8 /OpenSim/Capabilities/Handlers/FetchInventory/FetchInventory2Handler.cs | |
parent | add using into a few more places (diff) | |
download | opensim-SC-770f59ff87f109a78e038e646324defe625f7b92.zip opensim-SC-770f59ff87f109a78e038e646324defe625f7b92.tar.gz opensim-SC-770f59ff87f109a78e038e646324defe625f7b92.tar.bz2 opensim-SC-770f59ff87f109a78e038e646324defe625f7b92.tar.xz |
drop compatibility with old robust that did not suport inventoryService.GetMultipleItems
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Capabilities/Handlers/FetchInventory/FetchInventory2Handler.cs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInventory2Handler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInventory2Handler.cs index 0d7766c..bae4cf6 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInventory2Handler.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInventory2Handler.cs | |||
@@ -73,15 +73,6 @@ namespace OpenSim.Capabilities.Handlers | |||
73 | if (m_agentID != UUID.Zero) | 73 | if (m_agentID != UUID.Zero) |
74 | { | 74 | { |
75 | items = m_inventoryService.GetMultipleItems(m_agentID, itemIDs); | 75 | items = m_inventoryService.GetMultipleItems(m_agentID, itemIDs); |
76 | |||
77 | if (items == null) | ||
78 | { | ||
79 | // OMG!!! One by one!!! This is fallback code, in case the backend isn't updated | ||
80 | m_log.WarnFormat("[FETCH INVENTORY HANDLER]: GetMultipleItems failed. Falling back to fetching inventory items one by one."); | ||
81 | items = new InventoryItemBase[itemsRequested.Count]; | ||
82 | foreach (UUID id in itemIDs) | ||
83 | items[i++] = m_inventoryService.GetItem(m_agentID, id); | ||
84 | } | ||
85 | } | 76 | } |
86 | else | 77 | else |
87 | { | 78 | { |