mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 05:43:53 +01:00
fix playback pausing on playback error
This commit is contained in:
parent
643e337e61
commit
3a0d28b9b4
@ -214,10 +214,6 @@ impl<T: PlayerBackend<SongCustomData>> Player<T> {
|
|||||||
if db.playing != self.backend.playing() {
|
if db.playing != self.backend.playing() {
|
||||||
if db.playing {
|
if db.playing {
|
||||||
self.backend.resume();
|
self.backend.resume();
|
||||||
// if we can't resume (i.e. there is no song), send `Pause` command
|
|
||||||
if self.allow_sending_commands && !self.backend.playing() {
|
|
||||||
db.apply_command(Command::Pause);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
self.backend.pause();
|
self.backend.pause();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user