diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index 32c23002c..03c7861b7 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -460,7 +460,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser //try{Thread.currentThread().sleep(5000);} catch (InterruptedException e) {} // for profiler this.yc = new yacyCore(this); //log.logSystem("Started YaCy Protocol Core"); - System.gc(); try{Thread.currentThread().sleep(5000);} catch (InterruptedException e) {} // for profiler +// System.gc(); try{Thread.currentThread().sleep(5000);} catch (InterruptedException e) {} // for profiler serverInstantThread.oneTimeJob(yc, "loadSeeds", yacyCore.log, 3000); // initializing the stackCrawlThread @@ -837,6 +837,14 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser return hasDoneSomething; } + /** + * Creates a new File instance with absolute path of ours Seed File.
+ * @return a new File instance + */ + public File getOwnSeedFile() { + return new File(getRootPath(), getConfig("yacyOwnSeedFile", "mySeed.txt")); + } + /** * With this function the crawling process can be paused */ diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java index cb0445a22..5c26b2716 100644 --- a/source/de/anomic/yacy/yacySeedDB.java +++ b/source/de/anomic/yacy/yacySeedDB.java @@ -118,7 +118,7 @@ public final class yacySeedDB { seedPotentialDB = openSeedTable(seedPotentialDBFile); // create or init own seed - myOwnSeedFile = new File(sb.getRootPath(), sb.getConfig("yacyOwnSeedFile", "mySeed.txt")); + myOwnSeedFile = sb.getOwnSeedFile(); if (myOwnSeedFile.length() > 0) { // load existing identity mySeed = yacySeed.load(myOwnSeedFile);