Skip to content

Commit

Permalink
Merge pull request #15037 from spowelljr/fixDashboardCmd
Browse files Browse the repository at this point in the history
Fix `minikube dashboard` failing on macOS
  • Loading branch information
medyagh authored Sep 30, 2022
2 parents d566828 + b25b13f commit b672a15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/minikube/cmd/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,17 @@ func kubectlProxy(kubectlVersion string, binaryURL string, contextName string, p
func readByteWithTimeout(r io.ByteReader, timeout time.Duration) (byte, bool, error) {
bc := make(chan byte, 1)
ec := make(chan error, 1)
defer func() {
close(bc)
close(ec)
}()
go func() {
b, err := r.ReadByte()
if err != nil {
ec <- err
} else {
bc <- b
}
close(bc)
close(ec)
}()
select {
case b := <-bc:
Expand Down

0 comments on commit b672a15

Please sign in to comment.