* Reseed: Don't go on to the next host if we have enough http://zzz.i2p/topics/1287

This commit is contained in:
zzz
2012-12-05 00:00:55 +00:00
parent 63b8e7101f
commit d9727c901c

View File

@@ -273,6 +273,9 @@ public class Reseeder {
int dl = reseedOne(url, echoStatus);
if (dl > 0) {
total += dl;
// Don't go on to the next URL if we have enough
if (total >= 100)
break;
// remove alternate version if we haven't tried it yet
String alt;
if (url.startsWith("http://"))
@@ -392,9 +395,6 @@ public class Reseeder {
if (fetched > 0)
_context.netDb().rescan();
// Don't go on to the next URL if we have enough
if (fetched >= 100)
_isRunning = false;
return fetched;
} catch (Throwable t) {
_log.warn("Error reseeding", t);