Small change to better take advantage of latest Future changes
This commit is contained in:
parent
8a98406f07
commit
93b2ef55fc
1 changed files with 1 additions and 2 deletions
|
|
@ -1323,8 +1323,7 @@ trait ScalaActorRef extends ActorRefShared { ref: ActorRef =>
|
|||
if (isMessageJoinPoint) throw e
|
||||
else None
|
||||
}
|
||||
if (future.exception.isDefined) throw future.exception.get
|
||||
else future.result
|
||||
future.resultOrException
|
||||
} else throw new ActorInitializationException(
|
||||
"Actor has not been started, you need to invoke 'actor.start' before using it")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue