directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r791117 - /directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
Date Sat, 04 Jul 2009 12:45:35 GMT
Author: kayyagari
Date: Sat Jul  4 12:45:35 2009
New Revision: 791117

URL: http://svn.apache.org/viewvc?rev=791117&view=rev
Log:
o changed the scope of the method isSessionValid()
o added a line to dispose the connector if the connection to a server fails

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

Modified: directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java?rev=791117&r1=791116&r2=791117&view=diff
==============================================================================
--- directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
(original)
+++ directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
Sat Jul  4 12:45:35 2009
@@ -237,7 +237,7 @@
      *
      * @return <code>true</code> if the session is valid.
      */
-    private boolean isSessionValid()
+    public boolean isSessionValid()
     {
         return ( ldapSession != null ) && ldapSession.isConnected();
     }
@@ -606,6 +606,8 @@
         
         if ( !connectionFuture.isConnected() ) 
         {
+            // disposing connector if not connected
+            connector.dispose();
             return false;
         }
         



Mime
View raw message