mirror of
https://github.com/jech/galene.git
synced 2024-11-26 02:25:58 +01:00
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.
This commit is contained in:
parent
c1920e36b6
commit
7ee8cbc45a
1 changed files with 3 additions and 0 deletions
|
@ -829,6 +829,9 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
|
||||||
})
|
})
|
||||||
case pushConnsAction:
|
case pushConnsAction:
|
||||||
for _, u := range c.up {
|
for _, u := range c.up {
|
||||||
|
if !u.complete() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
tracks := u.getTracks()
|
tracks := u.getTracks()
|
||||||
ts := make([]conn.UpTrack, len(tracks))
|
ts := make([]conn.UpTrack, len(tracks))
|
||||||
for i, t := range tracks {
|
for i, t := range tracks {
|
||||||
|
|
Loading…
Reference in a new issue