Simplify ChannelInboundMessageHandlerAdapter.inboundBufferUpdated() implementation

This commit is contained in:
Trustin Lee 2013-03-05 12:22:57 +09:00
parent 0e3825899a
commit e4aa941bd4

View File

@ -92,13 +92,12 @@ public abstract class ChannelInboundMessageHandlerAdapter<I>
I imsg = (I) msg;
try {
messageReceived(ctx, imsg);
} catch (Signal abort) {
abort.expect(ABORT);
break;
} finally {
BufUtil.release(imsg);
}
}
} catch (Signal abort) {
abort.expect(ABORT);
} finally {
if (oldOutSize != out.size()) {
ctx.fireInboundBufferUpdated();