Fix incorrect closure in pushConnsAction.
This was causing us to lose connections.
This commit is contained in:
@@ -819,7 +819,7 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
|
|||||||
for i, t := range tracks {
|
for i, t := range tracks {
|
||||||
ts[i] = t
|
ts[i] = t
|
||||||
}
|
}
|
||||||
go func() {
|
go func(u *rtpUpConnection, ts []conn.UpTrack) {
|
||||||
err := a.client.PushConn(
|
err := a.client.PushConn(
|
||||||
g, u.id, u, ts, u.label,
|
g, u.id, u, ts, u.label,
|
||||||
)
|
)
|
||||||
@@ -829,7 +829,7 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
|
|||||||
err,
|
err,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}()
|
}(u, ts)
|
||||||
}
|
}
|
||||||
case connectionFailedAction:
|
case connectionFailedAction:
|
||||||
if down := getDownConn(c, a.id); down != nil {
|
if down := getDownConn(c, a.id); down != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user