Commit 26e6ecc3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix error handling on negotiation failure.

parent 0e7bf0b3
......@@ -788,15 +788,10 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
if down != nil {
err = negotiate(c, down, false, false)
if err != nil {
log.Printf("Negotiate: %v", err)
delDownConn(c, down.id)
err = failUpConnection(
c, down.id,
"negotiation failed",
)
if err != nil {
return err
}
c.error(group.UserError(
"Negotiation failed",
))
continue
}
}
......
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