Skip to content

Commit

Permalink
client/driver: fix bug where context doesn't get set properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nickethier committed Apr 26, 2018
1 parent c946d6d commit 89c985f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/driver/docker_coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (d *dockerCoordinator) pullImageImpl(image string, authOptions *docker.Auth
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
if pullTimeout > 0 {
ctx, cancel = context.WithDeadline(context.Background(), time.Now().Add(pullTimeout))
ctx, cancel = context.WithDeadline(ctx, time.Now().Add(pullTimeout))
}

pm := newImageProgressManager(image, cancel, d.handlePullInactivity, d.handlePullProgressReport)
Expand Down

0 comments on commit 89c985f

Please sign in to comment.