From a0dd87366f24474be555d8a3804f44defce2ef66 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 8 Dec 2020 18:32:56 +0100 Subject: Fix ready state for players Resolves: https://github.com/joffrey-bion/seven-wonders/issues/56 --- .../kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-server') 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) -- cgit