Skip to content

Commit aae11db

Browse files
committed
fix: Fix linux compilation.
1 parent 8ad3a57 commit aae11db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ytermusic/src/structures/media.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ fn get_handle(updater: &Sender<ManagerMessage>) -> Option<MediaControls> {
164164
}
165165
#[cfg(not(target_os = "macos"))]
166166
pub fn run_window_handler(_updater: &Sender<ManagerMessage>) -> Option<()> {
167-
use crate::SIGNALING_STOP;
167+
use crate::is_shutdown_sent;
168+
168169
loop {
169-
if SIGNALING_STOP.1.try_recv() == Ok(()) {
170+
if is_shutdown_sent() {
170171
use std::process::exit;
171172

172173
info!("event loop closed");
173-
SIGNALING_STOP.0.send(()).unwrap();
174174
exit(0);
175175
}
176176
}

0 commit comments

Comments
 (0)