Commit 58d25801 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added hashcode to threads name.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3159 b35dd754-fafc-0310-a699-88a17e54d16e
parent ffe378a3
/**
* $RCSfile$
* $RCSfile: ConnectionManagerImpl.java,v $
* $Revision$
* $Date$
*
......@@ -227,15 +227,15 @@ public class ConnectionManagerImpl extends BasicModule implements ConnectionMana
String threadName = null;
if (serverPort.isClientPort()) {
reader = new ClientSocketReader(router, serverName, sock, conn);
threadName = "Client SR";
threadName = "Client SR - " + reader.hashCode();
}
else if (serverPort.isComponentPort()) {
reader = new ComponentSocketReader(router, serverName, sock, conn);
threadName = "Component SR";
threadName = "Component SR - " + reader.hashCode();
}
else {
reader = new ServerSocketReader(router, serverName, sock, conn);
threadName = "Server SR";
threadName = "Server SR - " + reader.hashCode();
}
Thread thread = new Thread(reader, threadName);
thread.setDaemon(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment