Эх сурвалжийг харах

Skip song if it fails to load

Paul Lietar 8 жил өмнө
parent
commit
7ae919b1f7
2 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 1 0
      src/player.rs
  2. 1 0
      src/session.rs

+ 1 - 0
src/player.rs

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

+ 1 - 0
src/session.rs

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