1
Fork 0

Don't complain about unknown local tracks on close.

This commit is contained in:
Juliusz Chroboczek 2020-05-30 12:33:30 +02:00
parent 37b1994069
commit 2dd230ca45
1 changed files with 3 additions and 4 deletions

View File

@ -761,10 +761,9 @@ func delDownConn(c *webClient, id string) bool {
conn.remote.delLocal(conn)
for _, track := range conn.tracks {
found := track.remote.delLocal(track)
if !found {
log.Printf("Couldn't find remote track")
}
// we only insert the track after we get an answer, so
// ignore errors here.
track.remote.delLocal(track)
}
conn.pc.Close()
delete(c.down, id)