Merge pull request #10489 from vrothberg/fix-data-race

create libimage-events channel in main routine
This commit is contained in:
OpenShift Merge Robot 2021-05-27 19:42:04 +02:00 committed by GitHub
commit 4f4a440afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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.