Skip song if it fails to load

This commit is contained in:
Paul Lietar 2017-04-29 15:18:16 +01:00
parent 30bdcafb7e
commit 7ae919b1f7
2 changed files with 2 additions and 0 deletions

View file

@ -253,6 +253,7 @@ impl PlayerInternal {
} }
None => { None => {
end_of_track.complete(());
if self.state.is_playing() { if self.state.is_playing() {
self.run_onstop(); self.run_onstop();
} }

View file

@ -221,6 +221,7 @@ impl Session {
0x4a => (), 0x4a => (),
0x1b => { 0x1b => {
let country = String::from_utf8(data.as_ref().to_owned()).unwrap(); let country = String::from_utf8(data.as_ref().to_owned()).unwrap();
info!("Country: {:?}", country);
self.0.data.write().unwrap().country = country; self.0.data.write().unwrap().country = country;
} }