Skip to content

fix: clears playlist positions to zero before recalculating on changing playlist (fix #420)#422

Merged
Insprill merged 1 commit intojpochyla:masterfrom
cameronraw:fix/420-Queue.fill-crash-when-switching-playlists
May 21, 2023
Merged

fix: clears playlist positions to zero before recalculating on changing playlist (fix #420)#422
Insprill merged 1 commit intojpochyla:masterfrom
cameronraw:fix/420-Queue.fill-crash-when-switching-playlists

Conversation

@cameronraw
Copy link
Copy Markdown
Contributor

@cameronraw cameronraw commented May 19, 2023

This is a tiny change to fix the bug mention in issue #420 whereby an out of bounds error appears due to playlist lengths not being returned to zero upon changing to a different playlist.

@cameronraw cameronraw linked an issue May 20, 2023 that may be closed by this pull request
Copy link
Copy Markdown
Collaborator

@Insprill Insprill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for the fix!

@Insprill Insprill merged commit e352831 into jpochyla:master May 21, 2023
@arch-btw
Copy link
Copy Markdown
Contributor

Oh wow, thank you @cameronraw! I was trying to fix this in #387 but as @Insprill pointed out, I still had to figure out how it was happening. Turns out, this is it haha.

@cameronraw
Copy link
Copy Markdown
Contributor Author

No problem, @arch-btw ! The change was already suggested in the original issue, it was a nice and easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Queue.fill() crash when switching playlists

3 participants