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

It is possible to get "X is in the lead" upon ending a race in overtime #98

Open
TomyLobo opened this issue Feb 26, 2017 · 3 comments
Open

Comments

@TomyLobo
Copy link
Collaborator

I have no idea how that happened.

I guess it's a race condition in one of the race conditions.

(Yes that's totally what I meant to write)

@BSVino
Copy link
Owner

BSVino commented Feb 26, 2017

Pet peeve: People who talk about race conditions outside of the context of threading.

@TomyLobo
Copy link
Collaborator Author

TomyLobo commented Mar 3, 2017

heh, but we have two threads here: the one on the server and the one on the client.

An example:
If the client sends commands that arrive after the server already declared the game finished.
I'd call that a race condition.
The race is between the server saying "game finished" and the client sending out commands that don't typically occur after receiving the "game finished" packet.

Not saying that's what happened here, but it's an example :)

@BSVino
Copy link
Owner

BSVino commented Mar 3, 2017

Fair! :P

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

No branches or pull requests

2 participants