directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r944611 - /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Sat, 15 May 2010 10:53:27 GMT
Author: kayyagari
Date: Sat May 15 10:53:27 2010
New Revision: 944611

URL: http://svn.apache.org/viewvc?rev=944611&view=rev
Log:
o added a flag to skip notifying registered listeners if the connection was closed by the
user

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

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=944611&r1=944610&r2=944611&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Sat May 15 10:53:27 2010
@@ -3221,6 +3221,12 @@ public class LdapNetworkConnection exten
     @Override
     public void sessionClosed( IoSession session ) throws Exception
     {
+        // no need to handle if this session was closed by the user
+        if( !connected.get() )
+        {
+            return;
+        }
+        
         ldapSession.close( true );
         connected.set( false );
         // Reset the messageId



Mime
View raw message