forked from I2P_Developers/i2p.i2p
i2psnark: Fix TrackerClient thread name
This commit is contained in:
@ -134,8 +134,8 @@ public class TrackerClient implements Runnable {
|
|||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
// Set unique name.
|
// Set unique name.
|
||||||
String id = urlencode(snark.getID());
|
byte[] hash = snark.getInfoHash();
|
||||||
_threadName = "TrackerClient " + id.substring(id.length() - 12);
|
_threadName = "TrackerClient " + I2PSnarkUtil.toHex(hash);
|
||||||
_util = util;
|
_util = util;
|
||||||
_log = util.getContext().logManager().getLog(TrackerClient.class);
|
_log = util.getContext().logManager().getLog(TrackerClient.class);
|
||||||
this.meta = meta;
|
this.meta = meta;
|
||||||
@ -144,7 +144,7 @@ public class TrackerClient implements Runnable {
|
|||||||
this.snark = snark;
|
this.snark = snark;
|
||||||
|
|
||||||
this.port = PORT; //(port == -1) ? 9 : port;
|
this.port = PORT; //(port == -1) ? 9 : port;
|
||||||
this.infoHash = urlencode(snark.getInfoHash());
|
this.infoHash = urlencode(hash);
|
||||||
this.peerID = urlencode(snark.getID());
|
this.peerID = urlencode(snark.getID());
|
||||||
this.trackers = new ArrayList<TCTracker>(2);
|
this.trackers = new ArrayList<TCTracker>(2);
|
||||||
this.backupTrackers = new ArrayList<TCTracker>(2);
|
this.backupTrackers = new ArrayList<TCTracker>(2);
|
||||||
|
Reference in New Issue
Block a user