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

Shooting a tank while it does something else crashes the server. #4

Open
Leonardo2718 opened this issue Apr 8, 2016 · 0 comments
Open
Labels

Comments

@Leonardo2718
Copy link
Collaborator

If tank A shoots tank B and, at the same time, tank B moves, shoots, etc. the game server crashes.
This occurs when server first processes tank A shooting tank B. Tank B is therefore removed from the game. However, the next message processed is tank B performing its action, by which time it is no longer in the game. So, the server throws an exception and crashes.

This can be easily fixed by not throwing an exception when a tank that no longer exists makes a move. However, doing so may introduce other, unexpected bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant