From c7fb66f0903d4d7b7e6c04dc33a3e5e9d3a3068d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 2 Jan 2024 13:20:05 +0100 Subject: Fix order of sending player and game state update to client. Since we now close the event source when a game starts, make sure to send the updated player list before the game data. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.js') diff --git a/server.js b/server.js index 8130397..3b0792f 100644 --- a/server.js +++ b/server.js @@ -2005,8 +2005,8 @@ function start_game(game) { SQL_ROLLBACK.run() } - update_join_clients_game(game.game_id) update_join_clients_players(game.game_id) + update_join_clients_game(game.game_id) send_game_started_notification_to_offline_users(game.game_id) send_your_turn_notification_to_offline_users(game.game_id, null, state.active) -- cgit v1.2.3