diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-27 19:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 19:42:04 +0200 |
commit | 4f4a440afd521913745c314f2bebd0da45d9668e (patch) | |
tree | 8789b6b3a9841fae889ec65144aa713d72d977f6 | |
parent | 9cc6093602b9212440fefed8e0fe3adbf2745d49 (diff) | |
parent | 9822c3309c7cdd8ed66d0843104c10afca8bd79f (diff) | |
download | podman-4f4a440afd521913745c314f2bebd0da45d9668e.tar.gz podman-4f4a440afd521913745c314f2bebd0da45d9668e.tar.bz2 podman-4f4a440afd521913745c314f2bebd0da45d9668e.zip |
Merge pull request #10489 from vrothberg/fix-data-race
create libimage-events channel in main routine
-rw-r--r-- | libpod/runtime.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index d14048311..d775b55e1 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -715,9 +715,8 @@ func (r *Runtime) libimageEvents() { return status } + eventChannel := r.libimageRuntime.EventChannel() go func() { - eventChannel := r.libimageRuntime.EventChannel() - for { // Make sure to read and write all events before // checking if we're about to shutdown. |