Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) better handling of server shutdown See: e.g. http://www.yacy-forum.de/viewtopic.php?p=25234

theli857a2d76a27a
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 {