+act #3579 Direct ActorSelection for missing actor to deadLetters

This commit is contained in:
Patrik Nordwall 2013-11-06 14:27:16 +01:00
parent 8fb59a0bc6
commit 47216bd956
3 changed files with 37 additions and 4 deletions

View file

@ -19,6 +19,7 @@ import akka.actor.SelectChildName
import akka.actor.SelectChildPattern
import akka.actor.Identify
import akka.actor.ActorIdentity
import akka.actor.EmptyLocalActorRef
/**
* INTERNAL API
@ -141,7 +142,9 @@ private[akka] class RemoteSystemDaemon(
}
getChild(concatenatedChildNames.iterator) match {
case Nobody
sel.identifyRequest foreach { x sender ! ActorIdentity(x.messageId, None) }
val emptyRef = new EmptyLocalActorRef(system.provider, path / sel.elements.map(_.toString),
system.eventStream)
emptyRef.tell(sel, sender)
case child
child.tell(m, sender)
}