forked from I2P_Developers/i2p.i2p
* i2psnark:
- Don't stay interested if we run out of pieces to request (thanks sponge) - Enhance debug mode to show requests
This commit is contained in:
@ -117,10 +117,15 @@ public class Peer implements Comparable
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns socket (for debug printing)
|
||||
* @return socket debug string (for debug printing)
|
||||
*/
|
||||
public String getSocket()
|
||||
{
|
||||
if (state != null) {
|
||||
String r = state.getRequests();
|
||||
if (r != null)
|
||||
return sock.toString() + "<br>Requests: " + r;
|
||||
}
|
||||
return sock.toString();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user