diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-04 14:55:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 14:55:53 +0200 |
commit | b8dbc1159433f9b5e9d8436b25443bd335917235 (patch) | |
tree | f3c7473a9467e87fc60c9a473c5a24f093ffcc08 /pkg/api | |
parent | f7233a2da7fe79075ade9f34adc702c5d2eb76bc (diff) | |
parent | 86610c7852ee992d6c0b89d4a5cd70081950951d (diff) | |
download | podman-b8dbc1159433f9b5e9d8436b25443bd335917235.tar.gz podman-b8dbc1159433f9b5e9d8436b25443bd335917235.tar.bz2 podman-b8dbc1159433f9b5e9d8436b25443bd335917235.zip |
Merge pull request #10558 from vrothberg/fix-10529
remote events: fix --stream=false
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/compat/events.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/events.go b/pkg/api/handlers/compat/events.go index 405e616c5..9fbac91e0 100644 --- a/pkg/api/handlers/compat/events.go +++ b/pkg/api/handlers/compat/events.go @@ -75,7 +75,7 @@ func GetEvents(w http.ResponseWriter, r *http.Request) { coder := json.NewEncoder(w) coder.SetEscapeHTML(true) - for stream := true; stream; stream = query.Stream { + for { select { case err := <-errorChannel: if err != nil { |