From 7b13653cea578bf467f3404751167277a02dc441 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 1 Nov 2007 13:12:49 +0000 Subject: [PATCH] read the javadocs on wait(long) to see why this change was made git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@590990 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/WorkerAnt.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/WorkerAnt.java b/src/main/org/apache/tools/ant/util/WorkerAnt.java index 919cf4641..725a72a2d 100644 --- a/src/main/org/apache/tools/ant/util/WorkerAnt.java +++ b/src/main/org/apache/tools/ant/util/WorkerAnt.java @@ -114,10 +114,9 @@ public class WorkerAnt extends Thread { */ public void waitUntilFinished(long timeout) throws InterruptedException { synchronized(notify) { - if(finished) { - return; + while (!finished) { + notify.wait(timeout); } - notify.wait(timeout); } }