Skip to content

Commit

Permalink
*) next bugfix for threadpool problem
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1474 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Jan 28, 2006
1 parent bea2b9e commit 6da97bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/de/anomic/plasma/plasmaCrawlStacker.java
Expand Up @@ -644,10 +644,12 @@ public Object makeObject() {
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();
}
}
}

Expand Down

0 comments on commit 6da97bd

Please sign in to comment.