Skip to content

Commit

Permalink
Merge pull request #8876 from vrothberg/fix-8870
Browse files Browse the repository at this point in the history
libpod API: pull: fix channel race
  • Loading branch information
openshift-merge-robot authored Jan 4, 2021
2 parents 6a1fbe7 + acbec39 commit b502854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/handlers/libpod/images_pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b502854

Please sign in to comment.