From 8ccf9cfccb0752d3a544114cebf913418eb79bad Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 19 Nov 2024 21:57:18 +0100 Subject: [PATCH] joiney --- src/mpris/player.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mpris/player.rs b/src/mpris/player.rs index 8b158e0..9215894 100644 --- a/src/mpris/player.rs +++ b/src/mpris/player.rs @@ -226,9 +226,11 @@ impl Player { &self, emitter: &SignalEmitter<'_>, ) -> Result<(), zbus::fdo::Error> { - self.can_go_next_changed(emitter).await?; - self.can_go_previous_changed(emitter).await?; - self.can_play_changed(emitter).await?; + futures::try_join!( + self.can_go_next_changed(emitter), + self.can_go_previous_changed(emitter), + self.can_play_changed(emitter), + )?; Ok(()) }