From d9fbad71b9812cc56553b403c8b803af9c8311d6 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 28 Jan 2006 16:38:25 +0000 Subject: [PATCH] *) next try todo a bugfix git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1475 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlStacker.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/plasma/plasmaCrawlStacker.java b/source/de/anomic/plasma/plasmaCrawlStacker.java index 00e143d8f..c0e34c322 100644 --- a/source/de/anomic/plasma/plasmaCrawlStacker.java +++ b/source/de/anomic/plasma/plasmaCrawlStacker.java @@ -858,8 +858,12 @@ public final class plasmaCrawlStacker { // return thread back into pool plasmaCrawlStacker.this.theWorkerPool.returnObject(this); - // We are waiting for a new task now. - synchronized (this) { this.wait(); } + // We are waiting for a new task now. + synchronized (this) { + if (!this.stopped && !this.destroyed && !this.isInterrupted()) { + this.wait(); + } + } } else { try { // executing the new task