Skip to content

Commit

Permalink
Update windows souvlaki
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovenoboyo committed Aug 25, 2024
1 parent dc7c7ec commit 64c97c5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src-tauri/mpris/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ impl MprisHolder {
event_tx.send(event).unwrap();
})?;

#[cfg(target_os = "windows")]
thread::spawn(|| {
loop {
std::thread::sleep(std::time::Duration::from_millis(100));

// this must be run repeatedly by your program to ensure
// the Windows event queue is processed by your application
windows::pump_event_queue();
}
});

Ok(MprisHolder {
controls: Mutex::new(controls),
event_rx: Arc::new(Mutex::new(event_rx)),
Expand Down

0 comments on commit 64c97c5

Please sign in to comment.