Browse Source

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
master
Steve Loughran 17 years ago
parent
commit
7b13653cea
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/main/org/apache/tools/ant/util/WorkerAnt.java

+ 2
- 3
src/main/org/apache/tools/ant/util/WorkerAnt.java View File

@@ -114,10 +114,9 @@ public class WorkerAnt extends Thread {
*/ */
public void waitUntilFinished(long timeout) throws InterruptedException { public void waitUntilFinished(long timeout) throws InterruptedException {
synchronized(notify) { synchronized(notify) {
if(finished) {
return;
while (!finished) {
notify.wait(timeout);
} }
notify.wait(timeout);
} }
} }




Loading…
Cancel
Save