Commit fe83f619 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't complain about ErrClosedPipe in RTCP receiver.

This simply indicates that the server closed the connection
before we received the close indication from the client.
parent 8f89ac0b
......@@ -730,7 +730,7 @@ func rtcpUpListener(conn *rtpUpConnection, track *rtpUpTrack, r *webrtc.RTPRecei
firstSR := false
n, _, err := r.Read(buf)
if err != nil {
if err != io.EOF {
if err != io.EOF && err != io.ErrClosedPipe {
log.Printf("Read RTCP: %v", err)
}
return
......@@ -1016,7 +1016,7 @@ func rtcpDownListener(conn *rtpDownConnection, track *rtpDownTrack, s *webrtc.RT
for {
n, _, err := s.Read(buf)
if err != nil {
if err != io.EOF {
if err != io.EOF && err != io.ErrClosedPipe {
log.Printf("Read RTCP: %v", err)
}
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment