Skip to content

Commit

Permalink
fix: mpris thread exits immedately if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamAnimate committed Jan 29, 2025
1 parent e5da13b commit 596ca53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let (mpris_tx, mpris_rx) = channel();
let mpris = spawn(move || {
if cfg!(feature = "mpris") { return };
let mut media = mpris_handler::MediaInfo::new();

// let has_dbus = media.attach(move |e| mpris_handler::on_media_event(e, mpris_mtx.clone()));
Expand Down

0 comments on commit 596ca53

Please sign in to comment.