diff --git a/src/java/davmail/ldap/LdapConnection.java b/src/java/davmail/ldap/LdapConnection.java index 2ed8e96c..4e018eed 100644 --- a/src/java/davmail/ldap/LdapConnection.java +++ b/src/java/davmail/ldap/LdapConnection.java @@ -170,8 +170,8 @@ public class LdapConnection extends AbstractConnection { final int ldapVersion = LDAP_VERSION3; // Initialize the streams and start the thread - public LdapConnection(String name, Socket clientSocket) { - super(name + "-" + clientSocket.getPort(), clientSocket); + public LdapConnection(Socket clientSocket) { + super("LdapConnection-" + clientSocket.getPort(), clientSocket); try { is = new BufferedInputStream(client.getInputStream()); os = new BufferedOutputStream(client.getOutputStream()); diff --git a/src/java/davmail/ldap/LdapServer.java b/src/java/davmail/ldap/LdapServer.java index e17390b1..8de16833 100644 --- a/src/java/davmail/ldap/LdapServer.java +++ b/src/java/davmail/ldap/LdapServer.java @@ -24,6 +24,6 @@ public class LdapServer extends AbstractServer { } public AbstractConnection createConnectionHandler(Socket clientSocket) { - return new LdapConnection("LdapServer", clientSocket); + return new LdapConnection(clientSocket); } } \ No newline at end of file