[freenet-cvs] r13969 - trunk/freenet/src/freenet/node

toad at freenetproject.org toad at freenetproject.org
Fri Jul 6 20:04:19 UTC 2007


Author: toad
Date: 2007-07-06 20:04:18 +0000 (Fri, 06 Jul 2007)
New Revision: 13969

Modified:
   trunk/freenet/src/freenet/node/NodeDispatcher.java
Log:
Doh (un-break probe requests)

Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java	2007-07-06 19:42:44 UTC (rev 13968)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java	2007-07-06 20:04:18 UTC (rev 13969)
@@ -565,11 +565,13 @@
 			}
 			if(!rejected) {
 				ctx = (ProbeContext) recentProbeContexts.get(lid);
-				if(ctx == null && isNew) {
-					ctx = new ProbeContext(id, target, best, nearest, htl, counter, src, cb);
-				} else {
-					Logger.error(this, "Not creating new context for: "+id);
-					return true;
+				if(ctx == null) {
+					if(isNew) {
+						ctx = new ProbeContext(id, target, best, nearest, htl, counter, src, cb);
+					} else {
+						Logger.error(this, "Not creating new context for: "+id);
+						return true;
+					}
 				}
 				recentProbeContexts.push(lid, ctx); // promote or add
 				while(recentProbeContexts.size() > MAX_PROBE_CONTEXTS)




More information about the cvs mailing list