Change sender and senderfuture to Either

This commit is contained in:
Viktor Klang 2010-04-06 22:37:34 +02:00
parent d5f09f8278
commit 92d5f2c347
9 changed files with 49 additions and 66 deletions

View file

@ -48,7 +48,7 @@ trait Dispatcher { self: Actor =>
protected def dispatch: PartialFunction[Any, Unit] = {
case a if routes.isDefinedAt(a) =>
if (self.sender.isDefined) routes(a) forward transform(a)
if (self.replyTo.isDefined) routes(a) forward transform(a)
else routes(a) ! transform(a)
}