From f64d9f1c6c7043989f1df5e4542fbdfbb930adbd Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 13 Jun 2007 20:55:48 +0000 Subject: [PATCH] removed forced termination in case that a previous bad termination is detected this will cause many users to be unsure what to do next an leave them helpless to simply delete the control file is the same thinig that the user is othervise forced to do git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3885 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/yacy.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/yacy.java b/source/yacy.java index 880ca3e26..b089fca97 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -255,11 +255,10 @@ public final class yacy { if (f.exists()) { // another instance running? VM crash? User will have to care about this serverLog.logSevere("STARTUP", "the file " + f + " exists, this usually means that another instance of YaCy is using this DATA-folder."); serverLog.logSevere("STARTUP", "please make sure that DATA can be used exclusively by one YaCy. Quitting..."); - System.exit(-1); - } else { - f.createNewFile(); - f.deleteOnExit(); + f.delete(); } + f.createNewFile(); + f.deleteOnExit(); /* // Testing if the yacy archive file were unzipped correctly.