mirror of
https://github.com/jech/galene.git
synced 2024-11-26 02:25:58 +01:00
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.
This commit is contained in:
parent
8f89ac0bcf
commit
fe83f61998
1 changed files with 2 additions and 2 deletions
|
@ -730,7 +730,7 @@ func rtcpUpListener(conn *rtpUpConnection, track *rtpUpTrack, r *webrtc.RTPRecei
|
||||||
firstSR := false
|
firstSR := false
|
||||||
n, _, err := r.Read(buf)
|
n, _, err := r.Read(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err != io.EOF {
|
if err != io.EOF && err != io.ErrClosedPipe {
|
||||||
log.Printf("Read RTCP: %v", err)
|
log.Printf("Read RTCP: %v", err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
@ -1016,7 +1016,7 @@ func rtcpDownListener(conn *rtpDownConnection, track *rtpDownTrack, s *webrtc.RT
|
||||||
for {
|
for {
|
||||||
n, _, err := s.Read(buf)
|
n, _, err := s.Read(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err != io.EOF {
|
if err != io.EOF && err != io.ErrClosedPipe {
|
||||||
log.Printf("Read RTCP: %v", err)
|
log.Printf("Read RTCP: %v", err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue