From 71f2fc4f25bdfdeac7db9b8e62144c3110e3bf6a Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sat, 12 Dec 2020 16:18:28 +0100 Subject: Fix race conditions for game start and tests Resolves: https://github.com/joffrey-bion/seven-wonders/issues/70 --- .../org/luxons/sevenwonders/server/controllers/LobbyController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-server/src/main') diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt index 34dfe4e7..79b63bc6 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt @@ -173,7 +173,7 @@ class LobbyController( currentTurnInfo.forEach { val player = lobby.getPlayers()[it.playerIndex] - template.convertAndSendToUser(player.username, "/queue/lobby/" + lobby.id + "/started", it) + template.convertAndSendToUser(player.username, "/queue/lobby/started", it) } } -- cgit