control: fix data race on prune
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
ddf3f3e59c
commit
64cb4d44f6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue