put framing butting in new buffer

This commit is contained in:
Jesse McConnell 2012-06-19 16:27:53 -05:00
parent 30901917eb
commit 8e1645f06b
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ public abstract class FrameGenerator<T extends BaseFrame>
ByteBuffer buffer = ByteBuffer.allocate(buflen);
// TODO: figure out how to get this from a bytebuffer pool
buffer.put(framing);
generatePayload(buffer, frame);
return buffer;
}