This commit is contained in:
Trustin Lee 2013-08-05 17:40:45 +09:00
parent 0f80aad929
commit 87b17e195a
2 changed files with 6 additions and 6 deletions

View File

@ -230,8 +230,8 @@ public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter
int oldInputLength = in.readableBytes(); int oldInputLength = in.readableBytes();
decode(ctx, in, out); decode(ctx, in, out);
// Check if this handler was removed before try to continue the loop. // Check if this handler was removed before continuing the loop.
// If it was removed it is not safe to continue to operate on the buffer // If it was removed, it is not safe to continue to operate on the buffer.
// //
// See https://github.com/netty/netty/issues/1664 // See https://github.com/netty/netty/issues/1664
if (ctx.isRemoved()) { if (ctx.isRemoved()) {

View File

@ -359,8 +359,8 @@ public abstract class ReplayingDecoder<S> extends ByteToMessageDecoder {
try { try {
decode(ctx, replayable, out); decode(ctx, replayable, out);
// Check if this handler was removed before try to continue the loop. // Check if this handler was removed before continuing the loop.
// If it was removed it is not safe to continue to operate on the buffer // If it was removed, it is not safe to continue to operate on the buffer.
// //
// See https://github.com/netty/netty/issues/1664 // See https://github.com/netty/netty/issues/1664
if (ctx.isRemoved()) { if (ctx.isRemoved()) {
@ -381,8 +381,8 @@ public abstract class ReplayingDecoder<S> extends ByteToMessageDecoder {
} catch (Signal replay) { } catch (Signal replay) {
replay.expect(REPLAY); replay.expect(REPLAY);
// Check if this handler was removed before try to continue the loop. // Check if this handler was removed before continuing the loop.
// If it was removed it is not safe to continue to operate on the buffer // If it was removed, it is not safe to continue to operate on the buffer.
// //
// See https://github.com/netty/netty/issues/1664 // See https://github.com/netty/netty/issues/1664
if (ctx.isRemoved()) { if (ctx.isRemoved()) {