Commit 2dd230ca authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't complain about unknown local tracks on close.

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