Author: gatfora
Date: Thu Jan 18 02:26:30 2007
New Revision: 497383

URL: http://svn.apache.org/viewvc?view=rev&rev=497383
Log:
Minor improvement to waitUntilSequenceCompleted to stop additional sleep if the 
sequence is completed

Modified:
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java

Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java?view=diff&rev=497383&r1=497382&r2=497383
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
 Thu Jan 18 02:26:30 2007
@@ -623,7 +623,7 @@
                        if (status == SequenceReport.SEQUENCE_STATUS_TIMED_OUT)
                                done = true;
 
-                       if (maxWaitingTime >= 0) {
+                       if (!done && maxWaitingTime >= 0) {
                                long timeNow = System.currentTimeMillis();
                                if (timeNow > (startTime + maxWaitingTime))
                                        done = true;



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

Reply via email to