lila-ws: remove out.room/start

round-remote-socket
Thibault Duplessis 2019-11-11 15:44:25 -06:00
parent 4276bf9fa2
commit c7469ae89e
2 changed files with 0 additions and 5 deletions

View File

@ -45,7 +45,6 @@ object RoomSocket {
send(Protocol.Out.stop(roomId))
bus.unsubscribe(this, chatClassifier)
}
send(Protocol.Out.start(roomId))
bus.subscribe(this, chatClassifier)
}
@ -121,8 +120,6 @@ object RoomSocket {
s"tell/room/user $roomId $userId ${Json stringify payload}"
def tellRoomUsers(roomId: RoomId, userIds: Iterable[User.ID], payload: JsObject) =
s"tell/room/users $roomId ${P.Out.commas(userIds)} ${Json stringify payload}"
def start(roomId: RoomId) =
s"room/start $roomId"
def stop(roomId: RoomId) =
s"room/stop $roomId"
}

View File

@ -142,9 +142,7 @@ private[round] final class RoundRemoteDuct(
gameSpeed = game.speed.some
whitePlayer.goneWeight = whiteGoneWeight
blackPlayer.goneWeight = blackGoneWeight
// only run the following if the game actually exists, and not on duct start
buscriptions.chat
socketSend(RP.Out.start(roomId))
}
case lila.chat.actorApi.ChatLine(chatId, line) => fuccess {