mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Fix error handling on negotiation failure.
This commit is contained in:
parent
0e7bf0b348
commit
26e6ecc3bc
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue