We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If Dice.playdice() drops into the follow branch before the takeLeadership callback occurs then the program hangs without generating any dice rolls.
follow
This is because the first block of code in follow() has a loop condition that never breaks out. ie "while (ledgers == null) "
A potential solution is to change the condition to so that one the leadership "while (ledgers == null && !leader)"
Or is this additional check wrong for some reason?
The text was updated successfully, but these errors were encountered:
See pull request
Sorry, something went wrong.
@Johnlon for some reason github didn't send me a notification for this. I'm updating the tutorial for the new api, so will add this fix as I go.
No branches or pull requests
If Dice.playdice() drops into the
follow
branch before the takeLeadership callback occurs then the program hangs without generating any dice rolls.This is because the first block of code in follow() has a loop condition that never breaks out.
ie "while (ledgers == null) "
A potential solution is to change the condition to so that one the leadership
"while (ledgers == null && !leader)"
Or is this additional check wrong for some reason?
The text was updated successfully, but these errors were encountered: