diff --git a/app/controllers/massivedecks/notifications/Notifiers.scala b/app/controllers/massivedecks/notifications/Notifiers.scala index 789e1af..1f1e48a 100644 --- a/app/controllers/massivedecks/notifications/Notifiers.scala +++ b/app/controllers/massivedecks/notifications/Notifiers.scala @@ -34,7 +34,7 @@ class Notifiers (implicit context: ExecutionContext) { (secret) => { val lobbyAndHand = onIdentify(secret) identified += (secret.id -> notifier) - sync(lobbyAndHand) + sync(secret.id, lobbyAndHand) }, () => { identified.find(item => notifier == item._2).foreach { item => @@ -48,8 +48,8 @@ class Notifiers (implicit context: ExecutionContext) { } - def sync(lobbyAndHand: Lobby.LobbyAndHand): Unit = - notifyAll(Json.obj( + def sync(playerId: Player.Id, lobbyAndHand: Lobby.LobbyAndHand): Unit = + notify(playerId, Json.obj( "event" -> "Sync", "lobbyAndHand" -> Json.toJson(lobbyAndHand) ))