Author: toad
Date: 2007-12-21 23:25:41 +0000 (Fri, 21 Dec 2007)
New Revision: 16766

Modified:
   trunk/freenet/src/freenet/node/CHKInsertSender.java
Log:
Comments to explain a bit.

Modified: trunk/freenet/src/freenet/node/CHKInsertSender.java
===================================================================
--- trunk/freenet/src/freenet/node/CHKInsertSender.java 2007-12-21 15:51:35 UTC 
(rev 16765)
+++ trunk/freenet/src/freenet/node/CHKInsertSender.java 2007-12-21 23:25:41 UTC 
(rev 16766)
@@ -56,7 +56,8 @@
                        freenet.support.Logger.OSThread.logPID(this);
                        try {
                                this.completedTransfer(bt.send(node.executor));
-                               if (pn.isRoutable() && transferSucceeded) {
+                               // Double-check that the node is still 
connected. Pointless to wait otherwise.
+                               if (pn.isConnected() && transferSucceeded) {
                                        //synch-version: 
this.receivedNotice(waitForReceivedNotification(this));
                                        //Add ourselves as a listener for the 
longterm completion message of this transfer, then gracefully exit.
                                        
node.usm.addAsyncFilter(getNotificationMessageFilter(), this);


Reply via email to