diff --git a/graph/pull_v2.go b/graph/pull_v2.go index c50507cedf..1dbb9fe3f4 100644 --- a/graph/pull_v2.go +++ b/graph/pull_v2.go @@ -235,6 +235,9 @@ func (p *v2Puller) pullV2Tag(tag, taggedName string) (verified bool, err error) // 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() } }()