mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2024-09-07 20:44:48 +00:00
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:
parent
5ee2b02221
commit
44121f6a76
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user