On Thu, Feb 9, 2023 at 9:50 AM Peter Krempa <pkrempa(a)redhat.com> wrote:
Commit 5ef2582646eb98 added emitting of even when refreshign disk
state,
where it wanted to avoid sending the event if disk state didn't change.
This was achieved by using 'continue' in the loop filling the
information. Unfortunately this skips extraction of whether the device
has a tray which is propagated into internal structures, which in turn
broke cdrom media change as the code thought there's no tray for the
device.
Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=2166411
Fixes: 5ef2582646eb98af208ce37355f82bdef39931fa
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_process.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
Reviewed-by: Kristina Hanicova <khanicov(a)redhat.com>