include the port # in the thread name, and logging

This commit is contained in:
jrandom
2004-06-20 00:07:37 +00:00
committed by zzz
parent 0a8dc8afcc
commit ae0b4c59cc

View File

@ -53,7 +53,7 @@ public class ClientManager {
_pendingRunners = new HashSet();
_listener = new ClientListenerRunner(_context, this, port);
Thread t = new I2PThread(_listener);
t.setName("ClientListener");
t.setName("ClientListener:" + port);
t.setDaemon(true);
t.start();
}
@ -101,6 +101,9 @@ public class ClientManager {
}
public void destinationEstablished(ClientConnectionRunner runner) {
if (_log.shouldLog(Log.DEBUG))
_log.debug("DestinationEstablished called for destination " + runner.getConfig().getDestination().calculateHash().toBase64());
synchronized (_pendingRunners) {
_pendingRunners.remove(runner);
}