diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-04 13:41:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 13:41:28 -0500 |
commit | b5028541cfacc1ee344815c047df70d74fde7b24 (patch) | |
tree | 6757d23a7dbd56b6feb6ea8c15b01b90ad5b6924 | |
parent | 6a1fbe7a560a379650c49618369fb87ca3b90233 (diff) | |
parent | acbec396fd7f538dc311840a2a018357beb32d3e (diff) | |
download | podman-b5028541cfacc1ee344815c047df70d74fde7b24.tar.gz podman-b5028541cfacc1ee344815c047df70d74fde7b24.tar.bz2 podman-b5028541cfacc1ee344815c047df70d74fde7b24.zip |
Merge pull request #8876 from vrothberg/fix-8870
libpod API: pull: fix channel race
-rw-r--r-- | pkg/api/handlers/libpod/images_pull.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/libpod/images_pull.go b/pkg/api/handlers/libpod/images_pull.go index 5e2727e95..bacba006d 100644 --- a/pkg/api/handlers/libpod/images_pull.go +++ b/pkg/api/handlers/libpod/images_pull.go @@ -115,10 +115,10 @@ func ImagesPull(w http.ResponseWriter, r *http.Request) { } } - writer := channel.NewWriter(make(chan []byte, 1)) + writer := channel.NewWriter(make(chan []byte)) defer writer.Close() - stderr := channel.NewWriter(make(chan []byte, 1)) + stderr := channel.NewWriter(make(chan []byte)) defer stderr.Close() images := make([]string, 0, len(imagesToPull)) |