Posted May 02, 2025 by Freeeazy
#music #bug #coroutine
I fixed the bug that was causing the music to skip randomly.
How I Fixed:
I had a Coroutine running that would play the next song after the current one had finished. But I forgot to reset that coroutine if I skipped a song manually using the buttons. So when I would skip a song, the "starting" song coroutine would still try to run after the given duration of the song and skip after X amount of time.