Commit 7ee8cbc4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't push incomplete connections.

If a connetion is slow to get established, this would cause it to
be pushed twice, the first time before it is complete.  Thanks to
Roman Koval who noticed the issue.
parent c1920e36
......@@ -829,6 +829,9 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
})
case pushConnsAction:
for _, u := range c.up {
if !u.complete() {
continue
}
tracks := u.getTracks()
ts := make([]conn.UpTrack, len(tracks))
for i, t := range tracks {
......
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