1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Fix error handling on negotiation failure.

This commit is contained in:
Juliusz Chroboczek 2020-12-05 00:32:01 +01:00
parent 0e7bf0b348
commit 26e6ecc3bc

View file

@ -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
} }
} }