fix move monitoring

This commit is contained in:
Thibault Duplessis 2013-05-29 18:25:52 +02:00
parent 8239f226c9
commit f8898d7b04
2 changed files with 1 additions and 17 deletions

View file

@ -123,7 +123,7 @@ final class Env(
private def notifyMove(gameId: String, fen: String, lastMove: Option[String]) {
hub.socket.hub ! lila.socket.actorApi.Fen(gameId, fen, lastMove)
hub.socket.monitor ! lila.hub.actorApi.monitor.AddMove
hub.actor.monitor ! lila.hub.actorApi.monitor.AddMove
}
private[round] lazy val roomColl = db(CollectionRoom)

View file

@ -1,16 +0,0 @@
package lila.round
import akka.actor.ActorRef
import lila.hub.actorApi.monitor.AddMove
import lila.socket.actorApi.Fen
private[round] final class MoveNotifier(
hub: ActorRef,
monitor: lila.hub.ActorLazyRef) {
def apply(gameId: String, fen: String, lastMove: Option[String]) {
hub ! Fen(gameId, fen, lastMove)
monitor ! AddMove
}
}