Author: alanmc
Date: 2007-11-19 17:03:56 -0500 (Mon, 19 Nov 2007)
New Revision: 89944

Modified:
   trunk/bitsharp/src/MonoTorrent/Client/PeerConnections/PeerConnectionBase.cs
   
trunk/bitsharp/src/MonoTorrent/Client/PeerMessages/FastPeerExtensions/HaveAllMessage.cs
Log:
Correctly setting seeds as having 'AmInterested = true;' when receiving a 
HaveAll message. Removed old variable from PeerConnectionBase

Modified: 
trunk/bitsharp/src/MonoTorrent/Client/PeerConnections/PeerConnectionBase.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/Client/PeerConnections/PeerConnectionBase.cs 
2007-11-19 20:33:40 UTC (rev 89943)
+++ trunk/bitsharp/src/MonoTorrent/Client/PeerConnections/PeerConnectionBase.cs 
2007-11-19 22:03:56 UTC (rev 89944)
@@ -60,7 +60,6 @@
         private MonoTorrentCollection<int> isAllowedFastPieces;
         private bool isChoking;
         private bool isInterested;
-        private bool isinterestingtoMe;
         private int isRequestingPiecesCount;
         private DateTime lastMessageReceived;
         private DateTime lastMessageSent;

Modified: 
trunk/bitsharp/src/MonoTorrent/Client/PeerMessages/FastPeerExtensions/HaveAllMessage.cs
===================================================================
--- 
trunk/bitsharp/src/MonoTorrent/Client/PeerMessages/FastPeerExtensions/HaveAllMessage.cs
     2007-11-19 20:33:40 UTC (rev 89943)
+++ 
trunk/bitsharp/src/MonoTorrent/Client/PeerMessages/FastPeerExtensions/HaveAllMessage.cs
     2007-11-19 22:03:56 UTC (rev 89944)
@@ -73,6 +73,7 @@
 
             id.Peer.Connection.BitField.SetAll(true);
             id.Peer.IsSeeder = true;
+            id.TorrentManager.SetAmInterestedStatus(id, 
!id.TorrentManager.Complete);
         }
 
 

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

Reply via email to