From 62a7341c4d0864cf795d6788e53c2b42bdb1d8c0 Mon Sep 17 00:00:00 2001 From: hermens Date: Thu, 24 Sep 2009 11:38:15 +0000 Subject: [PATCH] Fix for http://forum.yacy-websuche.de/viewtopic.php?f=5&t=2204 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6341 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/crawler/Balancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/crawler/Balancer.java b/source/de/anomic/crawler/Balancer.java index 609d2cd15..2461ec4ac 100644 --- a/source/de/anomic/crawler/Balancer.java +++ b/source/de/anomic/crawler/Balancer.java @@ -390,7 +390,7 @@ public class Balancer { rest = rest + 3000 * loops; loops = 0; } - try {synchronized(this) { this.wait(rest); }} catch (final InterruptedException e) {} + if (rest > 0) {try {synchronized(this) { this.wait(rest); }} catch (final InterruptedException e) {}} for (int i = 0; i < loops; i++) { Log.logInfo("BALANCER", "waiting for " + crawlEntry.url().getHost() + ": " + ((loops - i) * 3) + " seconds remaining..."); try {synchronized(this) { this.wait(3000); }} catch (final InterruptedException e) {}