Author: stevel Date: Thu Nov 1 06:12:49 2007 New Revision: 590990 URL: http://svn.apache.org/viewvc?rev=590990&view=rev Log: read the javadocs on wait(long) to see why this change was made
Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/WorkerAnt.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/WorkerAnt.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/WorkerAnt.java?rev=590990&r1=590989&r2=590990&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/util/WorkerAnt.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/util/WorkerAnt.java Thu Nov 1 06:12:49 2007 @@ -114,10 +114,9 @@ */ public void waitUntilFinished(long timeout) throws InterruptedException { synchronized(notify) { - if(finished) { - return; + while (!finished) { + notify.wait(timeout); } - notify.wait(timeout); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]