*) added a few constraints to prevent exceptions when clicking on stop or pause on IndexCleaner_p.html when no thread is started

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2710 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 19 years ago
parent 1dfab1abe3
commit 07155ef3b0

@ -69,10 +69,10 @@ public class IndexCleaner_p {
urldbCleanerThread.endPause();
}
}
else if (post.get("action").equals("ustop")) {
else if (post.get("action").equals("ustop") && (urldbCleanerThread!=null)) {
urldbCleanerThread.abort();
}
else if (post.get("action").equals("upause")) {
else if (post.get("action").equals("upause") && (urldbCleanerThread!=null)) {
urldbCleanerThread.pause();
}
else if (post.get("action").equals("rstart")) {
@ -84,10 +84,10 @@ public class IndexCleaner_p {
indexCleanerThread.endPause();
}
}
else if (post.get("action").equals("rstop")) {
else if (post.get("action").equals("rstop") && (indexCleanerThread!=null)) {
indexCleanerThread.abort();
}
else if (post.get("action").equals("rpause")) {
else if (post.get("action").equals("rpause") && (indexCleanerThread!=null)) {
indexCleanerThread.pause();
}
prop.put("LOCATION","");

Loading…
Cancel
Save