From 2dd230ca45661ac95486f5a4e5a21b079ac1f6ed Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 30 May 2020 12:33:30 +0200 Subject: [PATCH] Don't complain about unknown local tracks on close. --- webclient.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webclient.go b/webclient.go index 346fe54..634f6fc 100644 --- a/webclient.go +++ b/webclient.go @@ -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)