Skip to content

Commit

Permalink
progress: fix clean context cancelling
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jan 4, 2023
1 parent fff089f commit c905063
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/pull/pullprogress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}

Expand Down

0 comments on commit c905063

Please sign in to comment.