control: fix data race on prune

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2018-07-11 10:54:13 -07:00
parent ddf3f3e59c
commit 64cb4d44f6
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ func (c *Controller) Prune(req *controlapi.PruneRequest, stream controlapi.Contr
}(w) }(w)
} }
eg2, ctx := errgroup.WithContext(stream.Context()) eg2, _ := errgroup.WithContext(stream.Context())
eg2.Go(func() error { eg2.Go(func() error {
defer close(ch) defer close(ch)