directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r771983 - /directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/future/BindFuture.java
Date Tue, 05 May 2009 21:54:01 GMT
Author: elecharny
Date: Tue May  5 21:54:01 2009
New Revision: 771983

URL: http://svn.apache.org/viewvc?rev=771983&view=rev
Log:
The get() method must be blocking. Replaced a poll() by a take() on the queue.

Modified:
    directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/future/BindFuture.java

Modified: directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/future/BindFuture.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/future/BindFuture.java?rev=771983&r1=771982&r2=771983&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/future/BindFuture.java
(original)
+++ directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/future/BindFuture.java
Tue May  5 21:54:01 2009
@@ -67,7 +67,7 @@
      */
     public BindResponse get() throws InterruptedException, ExecutionException
     {
-        return bindResponseQueue.poll();
+        return bindResponseQueue.take();
     }
 
     



Mime
View raw message