Author: toad
Date: 2007-05-30 20:54:23 +0000 (Wed, 30 May 2007)
New Revision: 13402

Modified:
   trunk/freenet/src/freenet/io/xfer/BulkTransmitter.java
Log:
error handling

Modified: trunk/freenet/src/freenet/io/xfer/BulkTransmitter.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BulkTransmitter.java      2007-05-30 
20:51:48 UTC (rev 13401)
+++ trunk/freenet/src/freenet/io/xfer/BulkTransmitter.java      2007-05-30 
20:54:23 UTC (rev 13402)
@@ -3,6 +3,8 @@
  * http://www.gnu.org/ for further details of the GPL. */
 package freenet.io.xfer;

+import freenet.io.comm.DMT;
+import freenet.io.comm.NotConnectedException;
 import freenet.io.comm.PeerContext;
 import freenet.support.BitArray;

@@ -52,8 +54,11 @@
         * Called when the PRB is aborted.
         */
        public void onAborted() {
-               // TODO do something
+               try {
+                       peer.sendAsync(DMT.createFNPBulkSendAborted(uid), null, 
0, null);
+               } catch (NotConnectedException e) {
+                       // Cool
+               }
        }
-

 }


Reply via email to