mirror of
https://github.com/docker/cli.git
synced 2026-08-31 02:24:13 -05:00
Merge pull request #15965 from tonistiigi/pull-goroutine-leak
Fix goroutine leak on pull Upstream-commit: 3b2c9fa049f9fd17936f6188d983fd70df00d746 Component: engine
This commit is contained in:
@@ -230,6 +230,9 @@ func (p *v2Puller) pullV2Tag(out io.Writer, tag, taggedName string) (verified bo
|
||||
// set the error. All successive reads/writes will return with this
|
||||
// error.
|
||||
pipeWriter.CloseWithError(errors.New("download canceled"))
|
||||
} else {
|
||||
// If no error then just close the pipe.
|
||||
pipeWriter.Close()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user