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

Add in a check to make sure the engine doesn't race with the UI #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brendanfly
Copy link
Owner

No description provided.

@@ -1815,6 +1819,9 @@ def start(self, tournament_data):
self.create_game(tournament_round, game)
except Exception:
log_exception()
finally:
self.process_new_games_allowed = True

Choose a reason for hiding this comment

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

Is it possible for there to be an exception where the tourney wouldn't be started? Might need to move this in the try block

self.process_new_games_allowed = False

# start the round robin tournament
super(RoundRobinTournament, self).start()

Choose a reason for hiding this comment

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

iirc, i moved this start() to the end of the function to prevent a race condition before. It has to do with the tournament being started, then new games being processed in start() later.

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.

None yet

2 participants