From d66375bf5cb259f2a4798859474bf2df292ae2e5 Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 26 Dec 2008 13:21:39 +0000 Subject: [PATCH] Fix LdapConnection thread name git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@259 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/ldap/LdapConnection.java | 4 ++-- src/java/davmail/ldap/LdapServer.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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