diff options
author | Diva Canto | 2012-12-09 22:03:21 -0800 |
---|---|---|
committer | Diva Canto | 2012-12-09 22:03:21 -0800 |
commit | b8178f5a509caf897dac0660db47ea9a5224194a (patch) | |
tree | 82d29d695e74e285be6802c8d6a3f45fd1c40d2f /OpenSim/Region | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-b8178f5a509caf897dac0660db47ea9a5224194a.zip opensim-SC_OLD-b8178f5a509caf897dac0660db47ea9a5224194a.tar.gz opensim-SC_OLD-b8178f5a509caf897dac0660db47ea9a5224194a.tar.bz2 opensim-SC_OLD-b8178f5a509caf897dac0660db47ea9a5224194a.tar.xz |
Switched the order by which foreign inventory and foreign assets are brought in, to avoid race conditions on the client.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index e0f3c99..5c8b097 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -688,12 +688,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
688 | itemCopy.SalePrice = item.SalePrice; | 688 | itemCopy.SalePrice = item.SalePrice; |
689 | itemCopy.SaleType = item.SaleType; | 689 | itemCopy.SaleType = item.SaleType; |
690 | 690 | ||
691 | if (AddInventoryItem(itemCopy)) | 691 | IInventoryAccessModule invAccess = RequestModuleInterface<IInventoryAccessModule>(); |
692 | { | 692 | if (invAccess != null) |
693 | IInventoryAccessModule invAccess = RequestModuleInterface<IInventoryAccessModule>(); | 693 | invAccess.TransferInventoryAssets(itemCopy, senderId, recipient); |
694 | if (invAccess != null) | 694 | AddInventoryItem(itemCopy); |
695 | invAccess.TransferInventoryAssets(itemCopy, senderId, recipient); | ||
696 | } | ||
697 | 695 | ||
698 | if (!Permissions.BypassPermissions()) | 696 | if (!Permissions.BypassPermissions()) |
699 | { | 697 | { |