Skip to content

Commit

Permalink
music: temporarily dont use join! in Player::new()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Jul 6, 2023
1 parent dfaaf6f commit aab6ce4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/blocks/music.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,15 @@ impl Player {
.await
.error("failed to open player proxy")?;

debug!("querying player info");
let (metadata, status, volume) =
tokio::join!(proxy.metadata(), proxy.playback_status(), proxy.volume());
// debug!("querying player info");
// let (metadata, status, volume) =
// tokio::join!(proxy.metadata(), proxy.playback_status(), proxy.volume());
debug!("querying player metadata");
let metadata = proxy.metadata().await;
debug!("querying player status");
let status = proxy.playback_status().await;
debug!("querying player volume");
let volume = proxy.volume().await;

let metadata = metadata.error("failed to obtain player metadata")?;
let status = status.error("failed to obtain player status")?;
Expand Down

0 comments on commit aab6ce4

Please sign in to comment.