Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch player ids to random #228

Closed
wants to merge 1 commit into from

Conversation

JTimNolan
Copy link

@JTimNolan JTimNolan commented May 22, 2021

Fixes #218

Note - please let me know if there is a method for consistently reproducing this issue, as I haven't been able to find one (and thus haven't truly been able to test this fix). That said, after reading the concerns around race condition and seeing that the current playerID is set via lodash.uniqueId - which is incremental - it seems very likely that this will fix the issue.

@JTimNolan JTimNolan changed the title Switch player ids to true unique random Switch player ids to random May 22, 2021
@bstnfrmry
Copy link
Owner

Hi @JTimNolan,

Thanks for the PR. Indeed, it might fix the problem :)
I just changed a bunch of things in the project and didn't want to bother fixing merge conflicts so the patch has been applied separetly here: 38e9566

@bstnfrmry bstnfrmry closed this May 22, 2021
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.

Last player can't join the game / Player mismatch
2 participants