From 93b1c26b3f370cadc3a23a569e13550d5cc46c3a Mon Sep 17 00:00:00 2001 From: Dragan Date: Fri, 11 Oct 2024 23:12:06 +0200 Subject: [PATCH] resolve hanging thread issuse, add radio metadata --- rsplayer_playback/src/rsp/player_service.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rsplayer_playback/src/rsp/player_service.rs b/rsplayer_playback/src/rsp/player_service.rs index eb6f9d5..c662a3f 100644 --- a/rsplayer_playback/src/rsp/player_service.rs +++ b/rsplayer_playback/src/rsp/player_service.rs @@ -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) {