Commit e3098899 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Log errors from PushConn.

parent ca6c371e
......@@ -258,7 +258,10 @@ func delUpConn(c *webClient, id string) bool {
if g != nil {
go func(clients []group.Client) {
for _, c := range clients {
c.PushConn(conn.id, nil, nil, "")
err := c.PushConn(conn.id, nil, nil, "")
if err != nil {
log.Printf("PushConn: %v", err)
}
}
}(g.GetClients(c))
} else {
......@@ -827,7 +830,17 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
for i, t := range tracks {
ts[i] = t
}
go a.c.PushConn(u.id, u, ts, u.label)
go func() {
err := a.c.PushConn(
u.id, u, ts, u.label,
)
if err != nil {
log.Printf(
"PushConn: %v",
err,
)
}
}()
}
case connectionFailedAction:
if down := getDownConn(c, a.id); down != nil {
......
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