mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2024-12-22 05:35:20 +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,
|
handler: H,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus::interface(name = "org.qemu.Display1.AudioOutListener")]
|
#[zbus::interface(name = "org.qemu.Display1.AudioOutListener", spawn = false)]
|
||||||
impl<H: AudioOutHandler> AudioOutListener<H> {
|
impl<H: AudioOutHandler> AudioOutListener<H> {
|
||||||
/// Init method
|
/// Init method
|
||||||
async fn init(
|
async fn init(
|
||||||
|
@ -159,7 +159,7 @@ pub(crate) struct ConsoleListener<H: ConsoleListenerHandler> {
|
|||||||
handler: H,
|
handler: H,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus::interface(name = "org.qemu.Display1.Listener")]
|
#[zbus::interface(name = "org.qemu.Display1.Listener", spawn = false)]
|
||||||
impl<H: ConsoleListenerHandler> ConsoleListener<H> {
|
impl<H: ConsoleListenerHandler> ConsoleListener<H> {
|
||||||
async fn scanout(
|
async fn scanout(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
Loading…
Reference in New Issue
Block a user