Skip to content

Commit ba01b54

Browse files
authored
Merge pull request moby#3443 from tonistiigi/progress-cancel
progress: fix clean context cancelling
2 parents 983480b + c905063 commit ba01b54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/pull/pullprogress/progress.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ func trackProgress(ctx context.Context, desc ocispecs.Descriptor, manager PullMa
106106
select {
107107
case <-ctx.Done():
108108
onFinalStatus = true
109+
// we need a context for the manager.Status() calls to pass once. after that this function will exit
110+
ctx = context.TODO()
109111
case <-ticker.C:
110112
}
111113

0 commit comments

Comments
 (0)