aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
index 5aa4b30..9b2e331 100644
--- a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
@@ -383,12 +383,15 @@ namespace OpenSim.Services.Connectors
383 return false; 383 return false;
384 } 384 }
385 385
386 public bool DeleteItem(string userID, InventoryItemBase item, UUID sessionID) 386 public bool DeleteItems(string userID, List<UUID> items, UUID sessionID)
387 { 387 {
388 try 388 try
389 { 389 {
390 return SynchronousRestSessionObjectPoster<InventoryItemBase, bool>.BeginPostObject( 390 List<Guid> guids = new List<Guid>();
391 "POST", m_ServerURI + "/DeleteItem/", item, sessionID.ToString(), item.Owner.ToString()); 391 foreach (UUID u in items)
392 guids.Add(u.Guid);
393 return SynchronousRestSessionObjectPoster<List<Guid>, bool>.BeginPostObject(
394 "POST", m_ServerURI + "/DeleteItem/", guids, sessionID.ToString(), userID);
392 } 395 }
393 catch (Exception e) 396 catch (Exception e)
394 { 397 {