mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
LDAP: fix thread name
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@708 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f1fa54311d
commit
aa1a82ac60
@ -47,14 +47,25 @@ public class AbstractConnection extends Thread {
|
||||
// Exchange session proxy
|
||||
protected ExchangeSession session;
|
||||
|
||||
// only set the thread name and socket
|
||||
/**
|
||||
* Only set the thread name and socket
|
||||
*
|
||||
* @param name thread type name
|
||||
* @param clientSocket client socket
|
||||
*/
|
||||
public AbstractConnection(String name, Socket clientSocket) {
|
||||
super(name);
|
||||
super(name + '-' + clientSocket.getPort());
|
||||
this.client = clientSocket;
|
||||
setDaemon(true);
|
||||
}
|
||||
|
||||
// Initialize the streams and set thread name
|
||||
/**
|
||||
* Initialize the streams and set thread name.
|
||||
*
|
||||
* @param name thread type name
|
||||
* @param clientSocket client socket
|
||||
* @param encoding socket stream encoding
|
||||
*/
|
||||
public AbstractConnection(String name, Socket clientSocket, String encoding) {
|
||||
super(name + '-' + clientSocket.getPort());
|
||||
this.client = clientSocket;
|
||||
|
Loading…
x
Reference in New Issue
Block a user