Author: toad
Date: 2007-06-14 12:24:07 +0000 (Thu, 14 Jun 2007)
New Revision: 13590

Modified:
   trunk/freenet/src/freenet/node/PeerManager.java
Log:
connectedPeers only contains routable peers, we may want to send to 
non-routable ones

Modified: trunk/freenet/src/freenet/node/PeerManager.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerManager.java     2007-06-14 12:06:36 UTC 
(rev 13589)
+++ trunk/freenet/src/freenet/node/PeerManager.java     2007-06-14 12:24:07 UTC 
(rev 13590)
@@ -444,7 +444,9 @@
     public void localBroadcast(Message msg, boolean ignoreRoutability) {
         PeerNode[] peers;
         synchronized (this) {
-                       peers = connectedPeers;
+               // myPeers not connectedPeers as connectedPeers only contains
+               // ROUTABLE peers, and we may want to send to non-routable peers
+                       peers = myPeers;
                }
         for(int i=0;i<peers.length;i++) {
                if(ignoreRoutability) {


Reply via email to