Skip to content

Commit c905063

Browse files
committed
progress: fix clean context cancelling
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent fff089f commit c905063

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)