another music fix

This commit is contained in:
ChomeNS 2023-03-28 18:09:18 +07:00
parent f031c3dd02
commit f41548c018

View file

@ -148,7 +148,7 @@ public class MusicPlayerPlugin extends SessionAdapter {
} }
}; };
playTask = bot.executor().schedule(task, 50, TimeUnit.MILLISECONDS); playTask = bot.executor().scheduleAtFixedRate(task, 50, 50, TimeUnit.MILLISECONDS);
if (currentSong != null) currentSong.play(); if (currentSong != null) currentSong.play();
} }