Skip to content

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

*) next bugfix for threadpool problem

theli6da97bd2e471
diff --git a/source/de/anomic/plasma/plasmaCrawlStacker.java b/source/de/anomic/plasma/plasmaCrawlStacker.java
index 83704fe4c..00e143d8f 100644
--- a/source/de/anomic/plasma/plasmaCrawlStacker.java
+++ b/source/de/anomic/plasma/plasmaCrawlStacker.java
@@ -644,10 +644,12 @@ public final class plasmaCrawlStacker {
public void destroyObject(Object obj) {
if (obj instanceof Worker) {
Worker theWorker = (Worker) obj;
- theWorker.setName("stackCrawlThread_destroyed");
- theWorker.destroyed = true;
- theWorker.setStopped(true);
- theWorker.interrupt();
+ synchronized(theWorker) {
+ theWorker.setName("stackCrawlThread_destroyed");
+ theWorker.destroyed = true;
+ theWorker.setStopped(true);
+ theWorker.interrupt();
+ }
}
}