* 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:
zzz
2010-10-27 13:29:27 +00:00
parent b9af4a8cf0
commit 983e7683fd
2 changed files with 33 additions and 11 deletions

View File

@ -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();
}