Author: nacktschneck
Date: 2006-03-04 15:14:22 +0000 (Sat, 04 Mar 2006)
New Revision: 8155

Modified:
   trunk/freenet/src/freenet/client/async/ClientPutter.java
Log:
Fix: the client was never notified when ClientPutter#start() failed because of 
an invalid insert URI
This could have caused HighLevelSimpleClient to wait forever for completion of 
an insert

Modified: trunk/freenet/src/freenet/client/async/ClientPutter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientPutter.java    2006-03-04 
15:03:30 UTC (rev 8154)
+++ trunk/freenet/src/freenet/client/async/ClientPutter.java    2006-03-04 
15:14:22 UTC (rev 8155)
@@ -58,6 +58,10 @@
                } catch (InserterException e) {
                        finished = true;
                        currentState = null;
+                       // notify the client that the insert could not even be 
started
+                       if (this.client!=null) {
+                               this.client.onFailure(e, this);
+                       }
                }
        }



Reply via email to