I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d9727c90 authored by zzz's avatar zzz
Browse files

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

parent 63b8e710
No related branches found
No related tags found
No related merge requests found
...@@ -273,6 +273,9 @@ public class Reseeder { ...@@ -273,6 +273,9 @@ public class Reseeder {
int dl = reseedOne(url, echoStatus); int dl = reseedOne(url, echoStatus);
if (dl > 0) { if (dl > 0) {
total += dl; 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 // remove alternate version if we haven't tried it yet
String alt; String alt;
if (url.startsWith("http://")) if (url.startsWith("http://"))
...@@ -392,9 +395,6 @@ public class Reseeder { ...@@ -392,9 +395,6 @@ public class Reseeder {
if (fetched > 0) if (fetched > 0)
_context.netDb().rescan(); _context.netDb().rescan();
// Don't go on to the next URL if we have enough
if (fetched >= 100)
_isRunning = false;
return fetched; return fetched;
} catch (Throwable t) { } catch (Throwable t) {
_log.warn("Error reseeding", t); _log.warn("Error reseeding", t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment