Big boss of summer tournament
This commit is contained in:
@@ -31,14 +31,12 @@ class LobbiesActor extends Actor with LazyLogging {
|
||||
case None => logger.error(s"Can't watch lobby $lobbyName - lobby not exists")
|
||||
}
|
||||
case ObserveLobbyByActorName(lobbyName) =>
|
||||
// get or create the StockActor for the symbol and forward this message
|
||||
val user = sender
|
||||
context.child(lobbyName) match {
|
||||
case Some(lobbyActor) => lobbyActor.tell(WatchLobby("watchIt"), user)
|
||||
case None => logger.error(s"Can't watch lobby $lobbyName - lobby not exists")
|
||||
}
|
||||
case watchLobby@WatchLobby(lobbyName) =>
|
||||
// get or create the StockActor for the symbol and forward this message
|
||||
context.child(lobbyName) match {
|
||||
case Some(lobbyActor) => lobbyActor forward watchLobby
|
||||
case None => logger.error(s"Can't watch lobby $lobbyName - lobby not exists")
|
||||
|
||||
Reference in New Issue
Block a user