Author: nextgens
Date: 2006-05-11 20:38:05 +0000 (Thu, 11 May 2006)
New Revision: 8668

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
maybe like that ?

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2006-05-11 20:16:35 UTC (rev 
8667)
+++ trunk/freenet/src/freenet/node/Node.java    2006-05-11 20:38:05 UTC (rev 
8668)
@@ -1281,7 +1281,7 @@
     }

     private void shouldInsertARK() {
-       arkPutter.update();
+       if(arkPutter!=null) arkPutter.update();
        }

        public ClientKeyBlock realGetKey(ClientKey key, boolean localOnly, 
boolean cache, boolean ignoreStore) throws LowLevelGetException {
@@ -1785,7 +1785,7 @@
                InetAddress addr = ipDetector.getAddress();
                if(addr != null) {
                        lastIPAddress = addr;
-                       shouldInsertARK();
+               //      shouldInsertARK();
                        return addr;
                }
                // Try to pick it up from our connections
@@ -1809,7 +1809,7 @@
                        if(countsByPeer.size() == 0) return null;
                        Iterator it = countsByPeer.keySet().iterator();
                        if(countsByPeer.size() == 1) {
-                               shouldInsertARK();
+               ///             shouldInsertARK();
                                return (InetAddress) it.next();
                        }
                        // Pick most popular address
@@ -1835,7 +1835,7 @@
                else     {
                        this.alerts.unregister(primaryIPUndetectedAlert);
                }
-               shouldInsertARK();
+               //shouldInsertARK();
                return lastIPAddress;
     }



Reply via email to