Skip to content

Commit

Permalink
Added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Dec 9, 2017
1 parent 40e33ae commit 12c55be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demuxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func OptPacketsParser(p PacketsParser) func(*Demuxer) {
// NextPacket retrieves the next packet
func (dmx *Demuxer) NextPacket() (p *Packet, err error) {
// Check ctx error
// TODO Handle ctx error another way since if the read blocks, everything blocks
// Maybe execute everything in a goroutine and listen the ctx channel in the same for loop
if err = dmx.ctx.Err(); err != nil {
return
}
Expand Down

0 comments on commit 12c55be

Please sign in to comment.