MusicHandler: properly skip tracks on error.

master
Nekojimi 9 months ago
parent 143f5dacda
commit 536743c6c1
  1. 3
      src/main/java/moe/nekojimi/chords/MusicHandler.java

@ -105,7 +105,8 @@ public class MusicHandler implements AudioSendHandler, Closeable, Consumer<Track
} catch (UnsupportedAudioFileException | IOException ex)
{
Logger.getLogger(Chords.class.getName()).log(Level.SEVERE, null, ex);
skipTrack();
currentTrack = null;
requestTrack();
} finally
{
}

Loading…
Cancel
Save