ionorg / ion-sfu

Pure Go WebRTC SFU
MIT License
980 stars 238 forks source link

Fix unreachable conditional in receiver's `writeRTP` #656

Closed rlpeck closed 2 years ago

rlpeck commented 2 years ago

Description

Currently after calling WriteRTP the code checks if the returned err is both an io.EOF and an io.ErrClosedPipe this condition would never be satisfied & the down track would never be removed through this function

Reference issue

Fixes #...