This commit is contained in:
Redkale
2018-12-18 09:41:20 +08:00
parent 1824f8150c
commit 8afcaa0b34

View File

@@ -118,7 +118,7 @@ public abstract class AsyncConnection2 implements ReadableByteChannel, WritableB
public abstract <A> void write(ByteBuffer[] srcs, int offset, int length, A attachment, CompletionHandler<Integer, ? super A> handler);
public void setReadBuffer(ByteBuffer buffer) {
if (this.readBuffer != null) throw new RuntimeException("repeat AsyncConnection.currentReadBuffer");
if (this.readBuffer != null) throw new RuntimeException("repeat AsyncConnection.setReadBuffer");
this.readBuffer = buffer;
}