Author: toad
Date: 2007-08-22 21:02:50 +0000 (Wed, 22 Aug 2007)
New Revision: 14842
Modified:
trunk/freenet/src/freenet/node/LocationManager.java
Log:
don't swap with a node whose location is the same as ours
Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2007-08-22 20:52:29 UTC
(rev 14841)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2007-08-22 21:02:50 UTC
(rev 14842)
@@ -618,6 +618,9 @@
// all multiplied together
// Dump
+
+ if(Math.abs(hisLoc - myLoc) <= Double.MIN_VALUE * 2)
+ return false; // Probably swapping with self
StringBuffer sb = new StringBuffer();