Author: toad
Date: 2008-03-28 19:32:58 +0000 (Fri, 28 Mar 2008)
New Revision: 18814

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
Log:
Refactor slightly

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2008-03-28 19:30:03 UTC 
(rev 18813)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2008-03-28 19:32:58 UTC 
(rev 18814)
@@ -581,6 +581,10 @@
     private void announceLocChange() {
         Message msg = DMT.createFNPLocChangeNotification(getLocation());
         node.peers.localBroadcast(msg, false, true, this);
+        recordLocChange();
+    }
+    
+    private void recordLocChange() {
         node.executor.execute(new Runnable() {

                        public void run() {
@@ -600,10 +604,10 @@
                        }

         }, "Record new location");
-    }
-    
-    private boolean locked;
+       }

+       private boolean locked;
+
     public static int swaps;
     public static int noSwaps;
     public static int startedSwaps;


Reply via email to