Change RemoteActorRef to not start before it's been published. #2575
This commit is contained in:
parent
4d003c50e7
commit
1d578a9aa2
3 changed files with 12 additions and 15 deletions
|
|
@ -42,6 +42,9 @@ class TestActorRef[T <: Actor](
|
|||
_supervisor,
|
||||
_supervisor.path / name) {
|
||||
|
||||
// we need to start ourselves since the creation of an actor has been split into initialization and starting
|
||||
underlying.start()
|
||||
|
||||
import TestActorRef.InternalGetActor
|
||||
|
||||
override def newActorCell(system: ActorSystemImpl, ref: InternalActorRef, props: Props, supervisor: InternalActorRef): ActorCell =
|
||||
|
|
@ -54,9 +57,6 @@ class TestActorRef[T <: Actor](
|
|||
}
|
||||
}
|
||||
|
||||
// we need to start ourselves since the creation of an actor has been split into initialization and starting
|
||||
override def actorCellShouldStart(): Boolean = true
|
||||
|
||||
/**
|
||||
* Directly inject messages into actor receive behavior. Any exceptions
|
||||
* thrown will be available to you, while still being able to use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue