remove unneeded function call to framer.HasData

This commit is contained in:
Lucas Clemente
2016-07-12 14:42:53 +02:00
parent 73db4d7a04
commit 58ec83c4ba

View File

@@ -189,7 +189,7 @@ func (p *packetPacker) composeNextPacket(stopWaitingFrame *frames.StopWaitingFra
// however, for the last StreamFrame in the packet, we can omit the DataLen, thus saving 2 bytes and yielding a packet of exactly the correct size
maxFrameSize += 2
for p.streamFramer.HasData() {
for {
if payloadLength > maxFrameSize {
return nil, fmt.Errorf("Packet Packer BUG: packet payload (%d) too large (%d)", payloadLength, maxFrameSize)
}