Author: toad
Date: 2007-08-31 15:05:17 +0000 (Fri, 31 Aug 2007)
New Revision: 14936

Modified:
   trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
Terminate start() prematurely if appropriate.

Modified: trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2007-08-31 15:04:17 UTC (rev 14935)
+++ trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2007-08-31 15:05:17 UTC (rev 14936)
@@ -253,6 +253,11 @@
                                                running[i].start();
                                                if(logMINOR)
                                                        Logger.minor(this, 
"Started "+i+" of "+running.length);
+                                               if(isFinished()) {
+                                                       if(logMINOR)
+                                                               
Logger.minor(this, "Already finished, killing start() on "+this);
+                                                       return;
+                                               }
                                        }
                                        if(logMINOR) Logger.minor(this, 
"Started "+running.length+" PutHandler's for "+this);
                                        if(cancelled) cancel();


Reply via email to