Fixes a Problem with mySeed.txt. If this file is accessible but has no content it will be recreated: http://www.yacy-forum.de/viewtopic.php?p=3657#3657

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@202 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
mkossin 20 years ago
parent ec77e6faa6
commit 3dd3431c58

@ -109,7 +109,7 @@ public class yacySeedDB {
// create or init own seed // create or init own seed
myOwnSeedFile = new File(sb.getRootPath(), sb.getConfig("yacyOwnSeedFile", "mySeed.txt")); myOwnSeedFile = new File(sb.getRootPath(), sb.getConfig("yacyOwnSeedFile", "mySeed.txt"));
if (myOwnSeedFile.exists()) { if (myOwnSeedFile.exists() && (myOwnSeedFile.length() > 0)) {
// load existing identity // load existing identity
mySeed = yacySeed.load(myOwnSeedFile); mySeed = yacySeed.load(myOwnSeedFile);
} else { } else {

Loading…
Cancel
Save