Merge pull request #13 from phase/master

Change Disconnect message to the Throwable's message
This commit is contained in:
Steven Smith 2016-08-21 19:24:24 -07:00 committed by GitHub
commit 55b4d8b6ba

View file

@ -352,7 +352,7 @@ public abstract class TcpSession extends SimpleChannelInboundHandler<Packet> imp
} else if(cause instanceof WriteTimeoutException) { } else if(cause instanceof WriteTimeoutException) {
message = "Write timed out."; message = "Write timed out.";
} else { } else {
message = "Internal network exception."; message = cause.toString();
} }
this.disconnect(message, cause); this.disconnect(message, cause);