foreachChild instead of allChildren, see #2552
This commit is contained in:
parent
7d47091e59
commit
e7a075a0d9
2 changed files with 6 additions and 6 deletions
|
|
@ -90,11 +90,11 @@ private[akka] class RemoteSystemDaemon(system: ActorSystemImpl, _path: ActorPath
|
|||
case TerminationHook ⇒
|
||||
terminating.switchOn {
|
||||
terminationHookDoneWhenNoChildren()
|
||||
allChildren foreach system.stop
|
||||
foreachChild { system.stop(_) }
|
||||
}
|
||||
|
||||
case AddressTerminated(address) ⇒
|
||||
allChildren foreach { case a: InternalActorRef if a.getParent.path.address == address ⇒ system.stop(a) }
|
||||
foreachChild { case a: InternalActorRef if a.getParent.path.address == address ⇒ system.stop(a) }
|
||||
|
||||
case unknown ⇒ log.warning("Unknown message {} received by {}", unknown, this)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue