Author: toad
Date: 2007-07-10 20:27:58 +0000 (Tue, 10 Jul 2007)
New Revision: 14020

Modified:
   trunk/freenet/src/freenet/node/DarknetPeerNode.java
Log:
Fix ARKs??

Modified: trunk/freenet/src/freenet/node/DarknetPeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/DarknetPeerNode.java 2007-07-10 19:13:15 UTC 
(rev 14019)
+++ trunk/freenet/src/freenet/node/DarknetPeerNode.java 2007-07-10 20:27:58 UTC 
(rev 14020)
@@ -1485,8 +1485,8 @@
        }

        protected synchronized boolean innerCalcNextHandshake(boolean 
successfulHandshakeSend, boolean dontFetchARK, long now) {
-               boolean fetchARKFlag = false;
                if(isBurstOnly) {
+                       boolean fetchARKFlag = false;
                        listeningHandshakeBurstCount++;
                        if(verifiedIncompatibleOlderVersion || 
verifiedIncompatibleNewerVersion) { 
                                // Let them know we're here, but have no hope 
of connecting
@@ -1507,10 +1507,10 @@
                                        + 
node.random.nextInt(Node.RANDOMIZED_TIME_BETWEEN_HANDSHAKE_SENDS);
                        }
                        if(logMINOR) Logger.minor(this, "Next BurstOnly mode 
handshake in "+(sendHandshakeTime - now)+"ms for "+getName()+" (count: 
"+listeningHandshakeBurstCount+", size: "+listeningHandshakeBurstSize+ ')', new 
Exception("double-called debug"));
+                       return fetchARKFlag;
                } else {
-                       super.innerCalcNextHandshake(successfulHandshakeSend, 
dontFetchARK, now);
+                       return 
super.innerCalcNextHandshake(successfulHandshakeSend, dontFetchARK, now);
                }
-               return fetchARKFlag;
        }

        public PeerNodeStatus getStatus() {


Reply via email to