1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Fix incorrect closure in pushConnsAction.

This was causing us to lose connections.
This commit is contained in:
Juliusz Chroboczek 2020-12-09 01:05:24 +01:00
parent f7048e4dae
commit 4de2953037

View file

@ -819,7 +819,7 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
for i, t := range tracks {
ts[i] = t
}
go func() {
go func(u *rtpUpConnection, ts []conn.UpTrack) {
err := a.client.PushConn(
g, u.id, u, ts, u.label,
)
@ -829,7 +829,7 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
err,
)
}
}()
}(u, ts)
}
case connectionFailedAction:
if down := getDownConn(c, a.id); down != nil {