qemu-display: don't spawn task for listeners!

Or it may process messages out of order...

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-06-17 17:49:12 +04:00
parent 5ee2b02221
commit 44121f6a76
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ struct AudioOutListener<H: AudioOutHandler> {
handler: H,
}
#[zbus::interface(name = "org.qemu.Display1.AudioOutListener")]
#[zbus::interface(name = "org.qemu.Display1.AudioOutListener", spawn = false)]
impl<H: AudioOutHandler> AudioOutListener<H> {
/// Init method
async fn init(

View File

@ -159,7 +159,7 @@ pub(crate) struct ConsoleListener<H: ConsoleListenerHandler> {
handler: H,
}
#[zbus::interface(name = "org.qemu.Display1.Listener")]
#[zbus::interface(name = "org.qemu.Display1.Listener", spawn = false)]
impl<H: ConsoleListenerHandler> ConsoleListener<H> {
async fn scanout(
&mut self,