Skip to content

Commit

Permalink
fix: correct error check in check connections (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom authored Oct 25, 2022
1 parent 15a97e7 commit 776a86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 776a86b

Please sign in to comment.