Author: toad
Date: 2008-03-07 15:22:02 +0000 (Fri, 07 Mar 2008)
New Revision: 18411

Modified:
   trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
Log:
Notify the throttle here.

Modified: trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java     2008-03-07 
15:18:04 UTC (rev 18410)
+++ trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java     2008-03-07 
15:22:02 UTC (rev 18411)
@@ -182,6 +182,7 @@
                                        msg = 
_usm.waitFor(mfMissingPacketNotification.or(mfAllReceived.or(mfSendAborted)), 
_ctr);
                                        if(logMINOR) Logger.minor(this, "Got 
"+msg);
                                } catch (DisconnectedException e) {
+                                       throttle.maybeDisconnected();
                                        Logger.normal(this, "Terminating send 
"+_uid+" to "+_destination+" from "+_destination.getSocketHandler()+" because 
node disconnected while waiting");
                                        //They disconnected, can't send an 
abort to them then can we?
                                        return false;


Reply via email to