Author: alanmc
Date: 2007-04-02 19:38:15 -0400 (Mon, 02 Apr 2007)
New Revision: 75318
Modified:
trunk/bitsharp/src/MonoTorrent.Client/PeerMessages/PieceMessage.cs
Log:
Added missing call to process the queue.
Modified: trunk/bitsharp/src/MonoTorrent.Client/PeerMessages/PieceMessage.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/PeerMessages/PieceMessage.cs
2007-04-02 22:12:29 UTC (rev 75317)
+++ trunk/bitsharp/src/MonoTorrent.Client/PeerMessages/PieceMessage.cs
2007-04-02 23:38:15 UTC (rev 75318)
@@ -254,6 +254,12 @@
// Keep adding new piece requests to this peers
queue until we reach the max pieces we're allowed queue
while (id.TorrentManager.AddPieceRequest(id)) {
}
+
+ if (!id.Peer.Connection.ProcessingQueue)
+ {
+ id.Peer.Connection.ProcessingQueue =
true;
+
ClientEngine.ConnectionManager.MessageHandler.EnqueueSend(id);
+ }
}
finally
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches