diff --git a/graph/pull_v2.go b/graph/pull_v2.go index c50507cedfbf9a4175ed47aa8e0d8a1e533e7ebb..1dbb9fe3f4097b30fbc0b66a55bdf777e3106cf9 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() } }()