Skip to content

Commit

Permalink
Remove reference to connection after closing it
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Feb 18, 2019
1 parent a3c24de commit 2460b16
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ public LDAPConnection getLdapConnection() {
}

public void releaseConnection() {
if (ldapConnection == null) {
return;
}

ldapConnectionPool.releaseConnection(ldapConnection);
ldapConnection = null;
}

}

0 comments on commit 2460b16

Please sign in to comment.