From 776a86b15f14d1c0846f9813845829ffb9642bb8 Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Tue, 25 Oct 2022 12:00:08 -0600 Subject: [PATCH] fix: correct error check in check connections (#1505) --- internal/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/proxy/proxy.go b/internal/proxy/proxy.go index 55f461e60..4546e7fef 100644 --- a/internal/proxy/proxy.go +++ b/internal/proxy/proxy.go @@ -442,7 +442,7 @@ func (c *Client) CheckConnections(ctx context.Context) error { return } cErr := conn.Close() - if err != nil { + if cErr != nil { errCh <- fmt.Errorf("%v: %v", m.inst, cErr) } }(mnt)