Switching so that createMailbox is called in the ActorCell constructor
This commit is contained in:
parent
648c8698a6
commit
7f8f0e8afb
2 changed files with 8 additions and 11 deletions
|
|
@ -164,10 +164,7 @@ abstract class MessageDispatcher extends Serializable {
|
|||
*/
|
||||
protected[akka] def register(actor: ActorCell): Unit = {
|
||||
if (uuids add actor.uuid) {
|
||||
if (actor.mailbox eq null) {
|
||||
actor.mailbox = createMailbox(actor)
|
||||
systemDispatch(SystemEnvelope(actor, Create, NullChannel))
|
||||
}
|
||||
systemDispatch(SystemEnvelope(actor, Create, NullChannel)) //FIXME should this be here or moved into ActorCell.start perhaps?
|
||||
if (active.isOff) {
|
||||
active.switchOn {
|
||||
start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue