[PATCH] Fix some concurrency issues regarding "inventory" asset transfers.

This commit is contained in:
Eva Comaroski
2020-09-03 05:47:12 +03:00
parent be8523a9e5
commit 9f43185431
4 changed files with 13 additions and 9 deletions

View File

@@ -170,9 +170,10 @@ namespace OpenMetaverse.TestClient
AutoResetEvent assetDownloadEvent = new AutoResetEvent(false);
byte[] notecardData = null;
string error = "Timeout";
var transferID = UUID.Random();
Client.Assets.RequestInventoryAsset(assetID, itemID, UUID.Zero, Client.Self.AgentID, AssetType.Notecard, true,
delegate(AssetDownload transfer, Asset asset)
Client.Assets.RequestInventoryAsset(assetID, itemID, UUID.Zero, Client.Self.AgentID, AssetType.Notecard, true, transferID,
delegate (AssetDownload transfer, Asset asset)
{
if (transfer.Success)
notecardData = transfer.AssetData;