Skip to content

Commit f1140f9

Browse files
committed
better handle closing of browser
1 parent d5a9870 commit f1140f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ impl DBusInterface for DBusRunner {
4545
msg.read3::<String, HashMap<_, _>, Vec<String>>().unwrap().1;
4646
if let Some(playback_status) = items.get("PlaybackStatus") {
4747
if let Some(status) = playback_status.0.as_str() {
48-
if status == "Paused" {
49-
good_to_send.store(false, std::sync::atomic::Ordering::SeqCst);
50-
}
5148
if status == "Playing" {
5249
good_to_send.store(true, std::sync::atomic::Ordering::SeqCst);
50+
} else {
51+
good_to_send.store(false, std::sync::atomic::Ordering::SeqCst);
5352
}
5453
}
5554
}

0 commit comments

Comments
 (0)