1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +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 {
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
}
}