directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r918145 - /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/SearchCursor.java
Date Tue, 02 Mar 2010 18:43:51 GMT
Author: kayyagari
Date: Tue Mar  2 18:43:51 2010
New Revision: 918145

URL: http://svn.apache.org/viewvc?rev=918145&view=rev
Log:
fixed an issue with next() if the underlying SearchFuture is cancelled cause of an abandoned
operation

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=918145&r1=918144&r2=918145&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
Tue Mar  2 18:43:51 2010
@@ -68,6 +68,13 @@
     {
         try
         {
+            if( future.isCancelled() )
+            {
+                response = null;
+                done = true;
+                return false;
+            }
+            
             response = future.get( timeout, timeUnit );
         }
         catch ( Exception e )



Mime
View raw message