Author: alanmc
Date: 2006-11-30 17:30:49 -0500 (Thu, 30 Nov 2006)
New Revision: 68780
Modified:
trunk/bitsharp/src/MonoTorrent.Common/TorrentCreator.cs
Log:
Removed the reordering of files for the CatStreamReader as that resulted in the
files being hashed in a different order to the order they were added to the
info dictionary. Hence the torrent could then never successfully hashcheck.
Modified: trunk/bitsharp/src/MonoTorrent.Common/TorrentCreator.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Common/TorrentCreator.cs 2006-11-30
21:08:51 UTC (rev 68779)
+++ trunk/bitsharp/src/MonoTorrent.Common/TorrentCreator.cs 2006-11-30
22:30:49 UTC (rev 68780)
@@ -534,10 +534,6 @@
public CatStreamReader(List<string> files)
{
_files = files;
-
- _files.Sort();
- _files.Reverse();
-
_currentStream = new FileStream(files[_currentFile++],
FileMode.Open, FileAccess.Read, FileShare.Read);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches