diff options
author | Arthur Valadares | 2009-08-21 17:52:25 -0300 |
---|---|---|
committer | Arthur Valadares | 2009-08-21 17:52:25 -0300 |
commit | 173701dd6377f127877ee31ba204c39b88c21a35 (patch) | |
tree | 7f96b168c0a10ab3fa9763114401d701342406e5 /OpenSim/Services/Connectors/Inventory | |
parent | Fix issue where conversion of temporary boolean variable fails on MySQL (diff) | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-173701dd6377f127877ee31ba204c39b88c21a35.zip opensim-SC_OLD-173701dd6377f127877ee31ba204c39b88c21a35.tar.gz opensim-SC_OLD-173701dd6377f127877ee31ba204c39b88c21a35.tar.bz2 opensim-SC_OLD-173701dd6377f127877ee31ba204c39b88c21a35.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs index b573a06..7c35bde 100644 --- a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs +++ b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs | |||
@@ -397,13 +397,28 @@ namespace OpenSim.Services.Connectors | |||
397 | 397 | ||
398 | private void MoveItemsAsync(string userID, List<InventoryItemBase> items, UUID sessionID) | 398 | private void MoveItemsAsync(string userID, List<InventoryItemBase> items, UUID sessionID) |
399 | { | 399 | { |
400 | if (items == null) | ||
401 | { | ||
402 | m_log.WarnFormat("[INVENTORY CONNECTOR]: request to move items got a null list."); | ||
403 | return; | ||
404 | } | ||
405 | |||
400 | try | 406 | try |
401 | { | 407 | { |
402 | SynchronousRestSessionObjectPoster<List<InventoryItemBase>, bool>.BeginPostObject( | 408 | //SynchronousRestSessionObjectPoster<List<InventoryItemBase>, bool>.BeginPostObject( |
403 | "POST", m_ServerURI + "/MoveItems/", items, sessionID.ToString(), userID.ToString()); | 409 | // "POST", m_ServerURI + "/MoveItems/", items, sessionID.ToString(), userID.ToString()); |
410 | |||
411 | //// Success | ||
412 | //return; | ||
413 | string uri = m_ServerURI + "/inventory/" + userID; | ||
414 | if (SynchronousRestObjectRequester. | ||
415 | MakeRequest<List<InventoryItemBase>, bool>("PUT", uri, items)) | ||
416 | m_log.DebugFormat("[INVENTORY CONNECTOR]: move {0} items poster succeeded {1}", items.Count, uri); | ||
417 | else | ||
418 | m_log.DebugFormat("[INVENTORY CONNECTOR]: move {0} items poster failed {1}", items.Count, uri); ; | ||
404 | 419 | ||
405 | // Success | ||
406 | return; | 420 | return; |
421 | |||
407 | } | 422 | } |
408 | catch (Exception e) | 423 | catch (Exception e) |
409 | { | 424 | { |