public void waitUntilFinished(long timeout) throws InterruptedException {
         synchronized(notify) {
-            if(finished) {
-                return;
+            while (!finished) {
+                notify.wait(timeout);
             }
-            notify.wait(timeout);
         }
     }
I hope you noticed that this is not an equivalent change, not just starting to accepting "false" interrupts, but also to ignore the timeout.

to do it correctly probably it should be using something using currentTimeMillis as well.


Martijn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to