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(
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer)
throws Exception {
Object frame = decode(ctx, channel, buffer);
headerBlockDecompressor.end();
return frame;
try {
Object frame = decode(ctx, channel, buffer);
return frame;
} finally {
headerBlockDecompressor.end();
}
}