mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Switched the order by which foreign inventory and foreign assets are brought in, to avoid race conditions on the client.
This commit is contained in:
@@ -688,12 +688,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
itemCopy.SalePrice = item.SalePrice;
|
||||
itemCopy.SaleType = item.SaleType;
|
||||
|
||||
if (AddInventoryItem(itemCopy))
|
||||
{
|
||||
IInventoryAccessModule invAccess = RequestModuleInterface<IInventoryAccessModule>();
|
||||
if (invAccess != null)
|
||||
invAccess.TransferInventoryAssets(itemCopy, senderId, recipient);
|
||||
}
|
||||
IInventoryAccessModule invAccess = RequestModuleInterface<IInventoryAccessModule>();
|
||||
if (invAccess != null)
|
||||
invAccess.TransferInventoryAssets(itemCopy, senderId, recipient);
|
||||
AddInventoryItem(itemCopy);
|
||||
|
||||
if (!Permissions.BypassPermissions())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user