[libopenmetaverse] r3594 committed - LIBOMV-929: When processing asset TransferPackets,...

0 views
Skip to first unread message

libopenm...@googlecode.com

unread,
Dec 2, 2011, 3:03:29 AM12/2/11
to libomv-...@googlegroups.com
Revision: 3594
Author: latifer
Date: Fri Dec 2 00:02:47 2011
Log: LIBOMV-929: When processing asset TransferPackets,
use the existing AssetDownload.Transferred count to
copy the new data into AssetDownload.Data rather than
assuming 1000 bytes

Patch by: Justin Clark-Casey
http://code.google.com/p/libopenmetaverse/source/detail?r=3594

Modified:
/libopenmetaverse/trunk/OpenMetaverse/AssetManager.cs

=======================================
--- /libopenmetaverse/trunk/OpenMetaverse/AssetManager.cs Sat Jul 9
04:32:09 2011
+++ /libopenmetaverse/trunk/OpenMetaverse/AssetManager.cs Fri Dec 2
00:02:47 2011
@@ -1467,11 +1467,9 @@
}
}

- // This assumes that every transfer packet except the last
one is exactly 1000 bytes,
- // hopefully that is a safe assumption to make
try
{
- Buffer.BlockCopy(asset.TransferData.Data, 0,
download.AssetData, 1000 * asset.TransferData.Packet,
+ Buffer.BlockCopy(asset.TransferData.Data, 0,
download.AssetData, download.Transferred,
asset.TransferData.Data.Length);
download.Transferred += asset.TransferData.Data.Length;
}

Reply all
Reply to author
Forward
0 new messages