Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More descriptive error upon null ByteCounter.

  • Loading branch information...
commit 4225fb13d1a0fcc492c2ef56aac5f2016e37bb31 1 parent 835aa46
@Thynix Thynix authored toad committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/freenet/node/PeerNode.java
View
2  src/freenet/node/PeerNode.java
@@ -1138,7 +1138,7 @@ public boolean isConnected() {
@Override
public MessageItem sendAsync(Message msg, AsyncMessageCallback cb, ByteCounter ctr) throws NotConnectedException {
if(ctr == null)
- Logger.error(this, "Bytes not logged", new Exception("debug"));
+ Logger.error(this, "ByteCounter null, so bandwidth usage cannot be logged. Refusing to send.", new Exception("debug"));
if(logMINOR)
Logger.minor(this, "Sending async: " + msg + " : " + cb + " on " + this+" for "+node.getDarknetPortNumber()+" priority "+msg.getPriority());
if(!isConnected()) {
Please sign in to comment.
Something went wrong with that request. Please try again.