AUTH-1282: Fixed an issue where we were receiving as opposed sending on the channel.

This commit is contained in:
Austin Cherry 2018-10-31 11:44:39 -05:00
parent 148eea5899
commit 236a0a164d
1 changed files with 1 additions and 1 deletions

View File

@ -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)