Fix resume on delte current and queue on empty

This commit is contained in:
Hans Mündelein 2023-06-09 18:44:42 +02:00
parent 258d45a29e
commit 06c02ac75c
Signed by: hans
GPG Key ID: BA7B55E984CE74F4
1 changed files with 4 additions and 1 deletions

View File

@ -189,8 +189,11 @@ impl Playback {
track track
}; };
debug!("queue lock released"); debug!("queue lock released");
let state = *self.state.lock().unwrap();
if state == PlayState::Playing {
self.play(track).in_current_span().await; self.play(track).in_current_span().await;
} }
}
PlaybackMessage::Insert { PlaybackMessage::Insert {
position, position,