SPDY: ensure end is called on inflater

This commit is contained in:
Jeff Pinner 2012-03-07 11:58:33 -08:00
parent 4e6bf332a6
commit ff3324fc7c

View File

@ -70,9 +70,11 @@ 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 {
return decode(ctx, channel, buffer);
} finally {
headerBlockDecompressor.end();
}
}