1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #15965 from tonistiigi/pull-goroutine-leak

Fix goroutine leak on pull
This commit is contained in:
Brian Goff 2015-09-01 09:27:55 -04:00
commit 3b2c9fa049

View file

@ -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 // set the error. All successive reads/writes will return with this
// error. // error.
pipeWriter.CloseWithError(errors.New("download canceled")) pipeWriter.CloseWithError(errors.New("download canceled"))
} else {
// If no error then just close the pipe.
pipeWriter.Close()
} }
}() }()