directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1744273 - /directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Tue, 17 May 2016 14:11:12 GMT
Author: elecharny
Date: Tue May 17 14:11:12 2016
New Revision: 1744273

URL: http://svn.apache.org/viewvc?rev=1744273&view=rev
Log:
Flip the connected flag when closing the connection

Modified:
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1744273&r1=1744272&r2=1744273&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Tue May 17 14:11:12 2016
@@ -789,9 +789,10 @@ public class LdapNetworkConnection exten
         if ( ( ldapSession != null ) && connected.get() )
         {
             ldapSession.close( true );
-            connected.set( false );
         }
 
+        connected.set( false );
+
         // And close the connector if it has been created locally
         // Release the connector
         connectorMutex.lock();



Mime
View raw message