improve comments, see #1854

This commit is contained in:
Roland 2012-02-22 15:50:33 +01:00
parent 7ce4765fec
commit 848702aecb

View file

@ -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"))