The temporary variable is no longer used in an attempt to accumulate data over onDataRead method class

This commit is contained in:
Scott Mitchell 2014-06-26 15:04:37 -04:00 committed by Norman Maurer
parent af042bb7d2
commit 761d50d86a

View File

@ -128,8 +128,8 @@ public class Http2ClientConnectionHandler extends AbstractHttp2ConnectionHandler
collectedData.writeBytes(data);
} else {
// Expand the buffer
ByteBuf newBuffer = ctx().alloc().buffer(data.readableBytes() + available);
newBuffer.writeBytes(data);
ByteBuf newBuffer = ctx().alloc().buffer(collectedData.readableBytes() + available);
newBuffer.writeBytes(collectedData);
newBuffer.writeBytes(data);
collectedData.release();
collectedData = newBuffer;