improve comments, see #1854
This commit is contained in:
parent
7ce4765fec
commit
848702aecb
1 changed files with 2 additions and 2 deletions
|
|
@ -397,8 +397,8 @@ private[akka] class ActorCell(
|
|||
clearActorFields()
|
||||
}
|
||||
}
|
||||
val freshActor = newActor()
|
||||
actor = freshActor // assign it here so if preStart fails, we can null out the sef-refs next call
|
||||
val freshActor = newActor() // this must happen after failedActor.preRestart (to scrap those children)
|
||||
actor = freshActor // this must happen before postRestart has a chance to fail
|
||||
freshActor.postRestart(cause)
|
||||
if (system.settings.DebugLifecycle) system.eventStream.publish(Debug(self.path.toString, clazz(freshActor), "restarted"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue