Author: toad
Date: 2008-12-12 21:59:25 +0000 (Fri, 12 Dec 2008)
New Revision: 24283
Modified:
trunk/freenet/src/freenet/node/PacketSender.java
Log:
Don't forget to send packets to peer 0 !!!!!
Also logging.
Modified: trunk/freenet/src/freenet/node/PacketSender.java
===================================================================
--- trunk/freenet/src/freenet/node/PacketSender.java 2008-12-12 21:53:13 UTC
(rev 24282)
+++ trunk/freenet/src/freenet/node/PacketSender.java 2008-12-12 21:59:25 UTC
(rev 24283)
@@ -227,7 +227,7 @@
nextActionTime = Math.min(nextActionTime, now +
canSendAt);
}
- int newBrokeAt = 0;
+ int newBrokeAt = -1;
for(int i = 0; i < nodes.length; i++) {
int idx = (i + brokeAt + 1) % nodes.length;
PeerNode pn = nodes[idx];
@@ -256,7 +256,7 @@
*/
pn.invalidate();
pn.setPeerNodeStatus(now);
- Logger.normal(this,
"shouldDisconnectNow has returned true : marking the peer as incompatible");
+ Logger.normal(this,
"shouldDisconnectNow has returned true : marking the peer as incompatible:
"+pn);
continue;
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs