Change sender and senderfuture to Either

This commit is contained in:
Viktor Klang 2010-04-06 22:37:34 +02:00
parent 784ca9e750
commit 2593fd3ab3
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)
}