directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r924754 - /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java
Date Thu, 18 Mar 2010 13:07:20 GMT
Author: kayyagari
Date: Thu Mar 18 13:07:20 2010
New Revision: 924754

URL: http://svn.apache.org/viewvc?rev=924754&view=rev
Log:
fixed a timeout issue cause of not checking on done flag in the next method

Modified:
    directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java?rev=924754&r1=924753&r2=924754&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java
Thu Mar 18 13:07:20 2010
@@ -66,6 +66,11 @@ public class SearchCursor extends Abstra
 
     public boolean next() throws Exception
     {
+        if( done )
+        {
+            return false;
+        }
+        
         try
         {
             if( future.isCancelled() )



Mime
View raw message