From 236a0a164d4d5967b0af3095db68667df6a436fd Mon Sep 17 00:00:00 2001 From: Austin Cherry Date: Wed, 31 Oct 2018 11:44:39 -0500 Subject: [PATCH] AUTH-1282: Fixed an issue where we were receiving as opposed sending on the channel. --- websocket/websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket/websocket.go b/websocket/websocket.go index 8bcc1baf..edf25337 100644 --- a/websocket/websocket.go +++ b/websocket/websocket.go @@ -150,7 +150,7 @@ func StartProxyServer(logger *logrus.Logger, listener net.Listener, remote strin done := make(chan struct{}) go pinger(logger, conn, done) defer func() { - <-done + done <- struct{}{} conn.Close() }() Stream(&Conn{conn}, stream)