Skip to content

Commit

Permalink
Fix unreachable conditional (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlpeck authored Jul 11, 2022
1 parent 68545cc commit 7b6cc7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sfu/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (w *WebRTCReceiver) writeRTP(layer int) {

for _, dt := range w.downTracks[layer].Load().([]*DownTrack) {
if err = dt.WriteRTP(pkt, layer); err != nil {
if err == io.EOF && err == io.ErrClosedPipe {
if err == io.EOF || err == io.ErrClosedPipe {
w.Lock()
w.deleteDownTrack(layer, dt.id)
w.Unlock()
Expand Down

0 comments on commit 7b6cc7b

Please sign in to comment.