From e91b0375462a0cf18b908d4639adc39478ab0035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Tue, 10 Aug 2021 13:16:45 +0200 Subject: [PATCH] Make sure to break loop and not select --- pkg/minikube/download/image.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/minikube/download/image.go b/pkg/minikube/download/image.go index 0346834c88..ee17a020a6 100644 --- a/pkg/minikube/download/image.go +++ b/pkg/minikube/download/image.go @@ -289,6 +289,7 @@ func ImageToDaemon(img string) error { errchan <- err }() var update v1.Update +loop: for { select { case update = <-c: @@ -299,7 +300,7 @@ func ImageToDaemon(img string) error { if err != nil { return errors.Wrap(err, "writing daemon image") } - break + break loop } } klog.V(3).Infof("Pulling image %v", ref)