From 240b05a660b8ec1fb5df934f12d9f454aac145b9 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 13 Aug 2020 13:48:17 +0200 Subject: [PATCH] Fix typo in renegotiation. --- webclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient.go b/webclient.go index 2e8647d..177fb92 100644 --- a/webclient.go +++ b/webclient.go @@ -819,7 +819,7 @@ func clientLoop(c *webClient, conn *websocket.Conn) error { case connectionFailedAction: if down := getDownConn(c, a.id); down != nil { err := negotiate(c, down, true, true) - if err == nil { + if err != nil { return err } tracks := make(