MusicHandler: properly skip tracks on error.

This commit is contained in:
Nekojimi 2024-04-04 13:00:15 +01:00
parent 143f5dacda
commit 536743c6c1
1 changed files with 2 additions and 1 deletions

View File

@ -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
{
}