From 857a2d76a27a66f60aa368cd8fcfdc95771369e5 Mon Sep 17 00:00:00 2001 From: theli Date: Mon, 4 Sep 2006 05:47:17 +0000 Subject: [PATCH] *) better handling of server shutdown See: e.g. http://www.yacy-forum.de/viewtopic.php?p=25234 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2471 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexCreateWWWGlobalQueue_p.java | 2 +- htroot/IndexCreateWWWLocalQueue_p.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/IndexCreateWWWGlobalQueue_p.java b/htroot/IndexCreateWWWGlobalQueue_p.java index 89088f0d2..10cea766f 100644 --- a/htroot/IndexCreateWWWGlobalQueue_p.java +++ b/htroot/IndexCreateWWWGlobalQueue_p.java @@ -81,7 +81,7 @@ public class IndexCreateWWWGlobalQueue_p { if (post.containsKey("clearcrawlqueue")) { int c = switchboard.urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_LIMIT); switchboard.urlPool.noticeURL.clear(plasmaCrawlNURL.STACK_TYPE_LIMIT); - switchboard.cleanProfiles(); + try { switchboard.cleanProfiles(); } catch (InterruptedException e) { /* Ignore this */} /* int c = 0; while (switchboard.urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_LIMIT) > 0) { diff --git a/htroot/IndexCreateWWWLocalQueue_p.java b/htroot/IndexCreateWWWLocalQueue_p.java index 34733f0fe..137ce33c4 100644 --- a/htroot/IndexCreateWWWLocalQueue_p.java +++ b/htroot/IndexCreateWWWLocalQueue_p.java @@ -92,7 +92,7 @@ public class IndexCreateWWWLocalQueue_p { if (pattern.equals(".*")) { c = switchboard.urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_CORE); switchboard.urlPool.noticeURL.clear(plasmaCrawlNURL.STACK_TYPE_CORE); - switchboard.cleanProfiles(); + try { switchboard.cleanProfiles(); } catch (InterruptedException e) {/* ignore this */} } else{ Pattern compiledPattern = null; try {