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