add packetParse.Empty()

This commit is contained in:
Lucas Clemente
2016-05-04 15:22:57 +02:00
parent df5143d561
commit e9ff0768ea
2 changed files with 15 additions and 0 deletions

View File

@@ -156,3 +156,8 @@ func (p *packetPacker) composeNextPacket(stopWaitingFrame *frames.StopWaitingFra
return payloadFrames, nil
}
// Empty returns true if no frames are queued
func (p *packetPacker) Empty() bool {
return p.streamFrameQueue.Front() == nil
}