fix: only setFailed when actor not null (#1399)
* fix: only setFailed when actor not null * chore: use ne rather than !=
This commit is contained in:
parent
73c93622f1
commit
0153485657
1 changed files with 1 additions and 2 deletions
|
|
@ -661,8 +661,7 @@ private[pekko] class ActorCell(
|
|||
Thread.currentThread().interrupt()
|
||||
throw ActorInitializationException(self, "interruption during creation", e)
|
||||
case NonFatal(e) =>
|
||||
if (actor == null) setFailed(system.deadLetters)
|
||||
else setFailed(actor.self)
|
||||
if (actor ne null) setFailed(actor.self)
|
||||
failActor()
|
||||
e match {
|
||||
case i: InstantiationException =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue