Make sure ...Decompressor.end() is called even on Exception. See #224
This commit is contained in:
parent
70e0eba894
commit
30ef214677
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user