Small change to better take advantage of latest Future changes

This commit is contained in:
Derek Williams 2011-02-14 21:41:31 -07:00
parent 8a98406f07
commit 93b2ef55fc

View file

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