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 {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue