Skip to content

Commit

Permalink
Fix typos in infinite action stream implementation.
Browse files Browse the repository at this point in the history
This fixes issues introduced in commit 6ae79f.
  • Loading branch information
jech committed Jul 16, 2021
1 parent b9c1968 commit 6388f16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rtpconn/rtpreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func readLoop(track *rtpUpTrack) {
case <-track.actionCh:
track.mu.Lock()
actions := track.actions
track.actions = nil
track.mu.Unlock()
for _, action := range actions {
switch action.action {
Expand All @@ -53,6 +54,7 @@ func readLoop(track *rtpUpTrack) {
log.Printf("Unknown action")
}
}
default:
}

bytes, _, err := track.track.Read(buf)
Expand Down

0 comments on commit 6388f16

Please # to comment.