Make sure ...Decompressor.end() is called even on Exception. See #224

This commit is contained in:
Norman Maurer 2012-03-07 21:14:48 +01:00
parent 70e0eba894
commit 30ef214677

View File

@ -70,9 +70,12 @@ public class SpdyFrameDecoder extends FrameDecoder {
protected Object decodeLast( protected Object decodeLast(
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer)
throws Exception { throws Exception {
Object frame = decode(ctx, channel, buffer); try {
headerBlockDecompressor.end(); Object frame = decode(ctx, channel, buffer);
return frame; return frame;
} finally {
headerBlockDecompressor.end();
}
} }