Skip to content

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

*) Bugfix for IllegalMonitorStateException See: http://www.yacy-forum.de/viewtopic.php?t=3522

thelie1edb236898e
diff --git a/source/de/anomic/plasma/plasmaCrawlBalancer.java b/source/de/anomic/plasma/plasmaCrawlBalancer.java
index 2dc71a7d8..4f18e2231 100644
--- a/source/de/anomic/plasma/plasmaCrawlBalancer.java
+++ b/source/de/anomic/plasma/plasmaCrawlBalancer.java
@@ -164,7 +164,7 @@ public class plasmaCrawlBalancer {
// this is only to protect against the worst case, where the crawler could
// behave in a DoS-manner
long sleeptime = minimumDelta - delta;
- try {this.wait(sleeptime);} catch (InterruptedException e) {}
+ try {synchronized(this) { this.wait(sleeptime); }} catch (InterruptedException e) {}
}
domainAccess.put(entry.substring(6), new Long(System.currentTimeMillis()));
return entry;