From c63369017f0ac8e204f79978f20d5c2abdf5bef2 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 15 Dec 2007 19:42:23 +0000 Subject: * Make inventory operations sync rather than async. This is to alleviate race conditions such as that in mantis #190 * Make inventory messages more verbose. Hopefully they aren't now too verbose * This may resolve some grid instability but it's likely there's much more out there. --- .../Communications/OGS1/OGS1InventoryService.cs | 37 ++++++---------------- 1 file changed, 9 insertions(+), 28 deletions(-) (limited to 'OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs') diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index 4f5d9ab..709a227 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -117,45 +117,26 @@ namespace OpenSim.Region.Communications.OGS1 public void AddNewInventoryFolder(LLUUID userID, InventoryFolderBase folder) { - try - { - RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/NewFolder/", folder); - } - catch (Exception) - { - } + SynchronousRestObjectPoster.BeginPostObject( + "POST", _inventoryServerUrl + "/NewFolder/", folder); } public void MoveInventoryFolder(LLUUID userID, InventoryFolderBase folder) { - try - { - RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/MoveFolder/", folder); - } - catch (Exception) - { - } + SynchronousRestObjectPoster.BeginPostObject( + "POST", _inventoryServerUrl + "/MoveFolder/", folder); } + public void AddNewInventoryItem(LLUUID userID, InventoryItemBase item) { - try - { - RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/NewItem/", item); - } - catch (Exception) - { - } + SynchronousRestObjectPoster.BeginPostObject( + "POST", _inventoryServerUrl + "/NewItem/", item); } public void DeleteInventoryItem(LLUUID userID, InventoryItemBase item) { - try - { - RestObjectPoster.BeginPostObject(_inventoryServerUrl + "/DeleteItem/", item); - } - catch (Exception) - { - } + SynchronousRestObjectPoster.BeginPostObject( + "POST", _inventoryServerUrl + "/DeleteItem/", item); } public void CreateNewUserInventory(LLUUID user) -- cgit v1.1