Skip to content

Commit

Permalink
resolve hanging thread issuse, add radio metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ljufa committed Oct 11, 2024
1 parent eb56179 commit 93b1c26
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rsplayer_playback/src/rsp/player_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ impl PlayerService {
if let Some(s) = self.queue_service.get_current_song() {
self.metadata_service.increase_play_count(&s.file);
}
*self.play_handle.lock().unwrap() = Some(self.play_all_in_queue());
}

pub fn pause_current_song(&self) {
let this = self;
this.paused.store(true, Ordering::Relaxed);
*self.playback_thread_handle.lock().unwrap() = Some(self.play_all_in_queue());
}

pub fn play_next_song(&self) {
Expand Down

0 comments on commit 93b1c26

Please sign in to comment.