From 1ac8c2876c73e6127535844816478762fe480217 Mon Sep 17 00:00:00 2001 From: Peter Vlugter Date: Mon, 19 Sep 2011 11:22:27 +0200 Subject: [PATCH] Remove SelfActorRef and use ActorContext to access state in ActorInstance. See #1202 - removed SelfActorRef - added an ActorContext interface that provides a view into ActorInstance - the ActorInstance (as ActorContext) gets injected into the Actor - moved self methods like sender and reply directly to the Actor --- akka-http/src/main/scala/akka/http/Mist.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-http/src/main/scala/akka/http/Mist.scala b/akka-http/src/main/scala/akka/http/Mist.scala index ef0ad699e4..8c181ea47b 100644 --- a/akka-http/src/main/scala/akka/http/Mist.scala +++ b/akka-http/src/main/scala/akka/http/Mist.scala @@ -258,7 +258,7 @@ trait Endpoint { this: Actor ⇒ if (!endpoints.isEmpty) endpoints.foreach { _.apply(uri) ! req } else { - self.channel match { + channel match { case null | NullChannel ⇒ _na(uri, req) case channel ⇒ channel ! NoneAvailable(uri, req) }