Author: toad
Date: 2008-02-13 16:46:36 +0000 (Wed, 13 Feb 2008)
New Revision: 17865

Modified:
   trunk/freenet/src/freenet/node/NodeDispatcher.java
Log:
Routed pings: Don't double-decrement on rejecting.

Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java  2008-02-13 12:01:21 UTC 
(rev 17864)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java  2008-02-13 16:46:36 UTC 
(rev 17865)
@@ -539,7 +539,7 @@
                ctx = (RoutedContext)routedContexts.get(lid);
                if(ctx != null) {
                        try {
-                               
source.sendAsync(DMT.createFNPRoutedRejected(id, (short)(htl-1)), null, 0, 
null);
+                               
source.sendAsync(DMT.createFNPRoutedRejected(id, (short)htl), null, 0, null);
                        } catch (NotConnectedException e) {
                                if(logMINOR) Logger.minor(this, "Lost 
connection rejecting "+m);
                        }


Reply via email to