fixing a test issue

This commit is contained in:
Jesse McConnell 2012-07-06 15:56:04 -05:00
parent c7cff443be
commit fc8198e854
1 changed files with 5 additions and 2 deletions

View File

@ -165,9 +165,12 @@ public class FrameGenerator
// validate the close
new CloseInfo(frame.getPayloadData(),true);
}
// copy payload
buffer.put(frame.getPayloadData());
// copy payload
if (frame.hasPayload())
{
buffer.put(frame.getPayloadData());
}
int positionPostPayload = buffer.position();
// mask it if needed