From c905063303f916662b0baad22ca0be856b275cc8 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 29 Dec 2022 15:30:13 -0800 Subject: [PATCH] progress: fix clean context cancelling Signed-off-by: Tonis Tiigi --- util/pull/pullprogress/progress.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/pull/pullprogress/progress.go b/util/pull/pullprogress/progress.go index b743706ed955..93c50106f79d 100644 --- a/util/pull/pullprogress/progress.go +++ b/util/pull/pullprogress/progress.go @@ -106,6 +106,8 @@ func trackProgress(ctx context.Context, desc ocispecs.Descriptor, manager PullMa select { case <-ctx.Done(): onFinalStatus = true + // we need a context for the manager.Status() calls to pass once. after that this function will exit + ctx = context.TODO() case <-ticker.C: }