diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-08 18:32:56 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-08 18:32:56 +0100 |
commit | a0dd87366f24474be555d8a3804f44defce2ef66 (patch) | |
tree | d552ceaaa89b5c9759edf56bd1a10ae6e48d9050 | |
parent | More traces for startGame_3players test (diff) | |
download | seven-wonders-a0dd87366f24474be555d8a3804f44defce2ef66.tar.gz seven-wonders-a0dd87366f24474be555d8a3804f44defce2ef66.tar.bz2 seven-wonders-a0dd87366f24474be555d8a3804f44defce2ef66.zip |
Fix ready state for players
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/56
-rw-r--r-- | sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt index 0309cb27..51e8ba4f 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt @@ -91,7 +91,7 @@ class GameController( } private fun sendPlayerReady(gameId: Long, player: Player) = - template.convertAndSend("/topic/game/$gameId/playerReady", "\"${player.username}\"") + template.convertAndSend("/topic/game/$gameId/playerReady", player.username) private fun sendPreparedCard(gameId: Long, preparedCard: PreparedCard) = template.convertAndSend("/topic/game/$gameId/prepared", preparedCard) |