This commit is contained in:
Henrik Engstrom 2011-12-10 10:53:38 +01:00
parent 90b6833978
commit 11450ca4e0
5 changed files with 9 additions and 5 deletions

View file

@ -85,6 +85,9 @@ class RemoteActorRefProvider(
if (systemService) local.actorOf(system, props, supervisor, name, systemService)
else {
val path = supervisor.path / name
println("*** PATH : " + path.toString)
val newFuture = Promise[ActorRef](system.settings.ActorTimeout)(dispatcher)
actors.putIfAbsent(path.toString, newFuture) match { // we won the race -- create the actor and resolve the future