*) next try todo a bugfix :-(

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1476 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent d9fbad71b9
commit 4b4b93c413

@ -855,11 +855,11 @@ public final class plasmaCrawlStacker {
// The thread keeps running. // The thread keeps running.
while (!this.stopped && !this.isInterrupted() && !plasmaCrawlStacker.this.theWorkerPool.isClosed) { while (!this.stopped && !this.isInterrupted() && !plasmaCrawlStacker.this.theWorkerPool.isClosed) {
if (this.done) { if (this.done) {
// return thread back into pool
plasmaCrawlStacker.this.theWorkerPool.returnObject(this);
// We are waiting for a new task now.
synchronized (this) { synchronized (this) {
// return thread back into pool
plasmaCrawlStacker.this.theWorkerPool.returnObject(this);
// We are waiting for a new task now.
if (!this.stopped && !this.destroyed && !this.isInterrupted()) { if (!this.stopped && !this.destroyed && !this.isInterrupted()) {
this.wait(); this.wait();
} }

Loading…
Cancel
Save