Author: alanmc
Date: 2008-01-03 11:09:08 -0500 (Thu, 03 Jan 2008)
New Revision: 92184

Modified:
   trunk/bitsharp/src/MonoTorrent/Client/Managers/TorrentManager.cs
Log:
Cosmetic

Modified: trunk/bitsharp/src/MonoTorrent/Client/Managers/TorrentManager.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/Client/Managers/TorrentManager.cs    
2008-01-03 15:48:16 UTC (rev 92183)
+++ trunk/bitsharp/src/MonoTorrent/Client/Managers/TorrentManager.cs    
2008-01-03 16:09:08 UTC (rev 92184)
@@ -670,10 +670,13 @@
         {
             int index = pieceHashedEventArgs.PieceIndex;
             for (int i = 0; i < this.torrent.Files.Length; i++)
+            {
                 if (index >= this.torrent.Files[i].StartPieceIndex && index <= 
this.torrent.Files[i].EndPieceIndex)
+                {
                     this.torrent.Files[i].BitField[index - 
this.torrent.Files[i].StartPieceIndex] = pieceHashedEventArgs.HashPassed;
-                else if (index < this.torrent.Files[i].StartPieceIndex)
                     break;
+                }
+            }
 
             if (this.PieceHashed != null)
                 ThreadPool.QueueUserWorkItem(new 
WaitCallback(AsyncPieceHashed), pieceHashedEventArgs);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to