Author: gatfora
Date: Tue Jan 23 03:27:22 2007
New Revision: 498993

URL: http://svn.apache.org/viewvc?view=rev&rev=498993
Log:
waitForSequenceCompletion using -1 value never waits until the sequence 
terminates

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=498993&r1=498992&r2=498993
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
 Tue Jan 23 03:27:22 2007
@@ -622,9 +622,9 @@
                        if (status == SequenceReport.SEQUENCE_STATUS_TIMED_OUT)
                                done = true;
 
-                       if (!done && maxWaitingTime >= 0) {
+                       if (!done) {
                                long timeNow = System.currentTimeMillis();
-                               if (timeNow > (startTime + maxWaitingTime))
+                               if ((timeNow > (startTime + maxWaitingTime)) && 
maxWaitingTime != -1)
                                        done = true;
                                else
                                {



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

Reply via email to