Author: nextgens
Date: 2006-07-12 17:09:01 +0000 (Wed, 12 Jul 2006)
New Revision: 9579

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
doh

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2006-07-12 16:08:14 UTC 
(rev 9578)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2006-07-12 17:09:01 UTC 
(rev 9579)
@@ -1199,8 +1199,8 @@
             else return;
             if(unverifiedTracker != null) return;
         }
-        if(isRoutable())
-               sendInitialMessages();
+       
+       sendInitialMessages();
     }

     /**
@@ -1211,7 +1211,8 @@
         Message ipMsg = DMT.createFNPDetectedIPAddress(detectedPeer);

         try {
-               sendAsync(locMsg, null, 0, null);
+               if(isRoutable())
+                        sendAsync(locMsg, null, 0, null);
             sendAsync(ipMsg, null, 0, null);
         } catch (NotConnectedException e) {
             Logger.error(this, "Completed handshake with "+getPeer()+" but 
disconnected!!!", new Exception("error"));
@@ -1796,7 +1797,7 @@
                        Logger.minor(this, "Reporting ping time to "+this+" : 
"+(now - startTime));
                }

-               if(!shouldDisconnectNow()){
+               if(shouldDisconnectNow()){
                                invalidate();
                                setPeerNodeStatus(now);
                }


Reply via email to