summaryrefslogtreecommitdiff
path: root/sw-server/src/main
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-12-12 16:18:28 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-12-12 16:18:28 +0100
commit71f2fc4f25bdfdeac7db9b8e62144c3110e3bf6a (patch)
treed8a88a126c74d3a36177980be4259b1a173fa1aa /sw-server/src/main
parentFix race in blinking test (diff)
downloadseven-wonders-71f2fc4f25bdfdeac7db9b8e62144c3110e3bf6a.tar.gz
seven-wonders-71f2fc4f25bdfdeac7db9b8e62144c3110e3bf6a.tar.bz2
seven-wonders-71f2fc4f25bdfdeac7db9b8e62144c3110e3bf6a.zip
Fix race conditions for game start and tests
Resolves: https://github.com/joffrey-bion/seven-wonders/issues/70
Diffstat (limited to 'sw-server/src/main')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt2
1 files changed, 1 insertions, 1 deletions
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)
}
}
bgstack15