ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r590990 - /ant/core/trunk/src/main/org/apache/tools/ant/util/WorkerAnt.java
Date Thu, 01 Nov 2007 13:12:49 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message