downlords-faf-client
downlords-faf-client copied to clipboard
Long delay in `game_launch` message
Sometimes the game_launch
message takes a long time to arrive when trying to start a game.
To reproduce:
- Log in
- Create game. Note that the game is not created
- Hit create game again. Now two games get created
Also notably this allows the for cases when a client can send game_host request or game_join request in quick succession. The server then responds with potentially two game_launch messages when only one game_launch and an error would be expected.
After testing it on the test server this lag seems to be coming from the client. When sending the message through other means it seems to show up immediately.
This is due to the client setting up the files and preferences before launching the game.
As to being able to launch multiple games at once on the server that is something that should be handled in the server code.