ActorSystem.stop shouldn't throw exceptions
def stop(actor: ActorRef): Unit = {
implicit val timeout = settings.CreationTimeout
val path = actor.path
val guard = guardian.path
val sys = systemGuardian.path
path.parent match {
case guard ⇒ Await.result(guardian ? StopChild(actor), timeout.duration) <--- NO PLEASE
case sys ⇒ Await.result(systemGuardian ? StopChild(actor), timeout.duration) <--- NO PLEASE
case _ ⇒ actor.asInstanceOf[InternalActorRef].stop()
}
}
implicit val timeout = settings.CreationTimeout
val path = actor.path
val guard = guardian.path
val sys = systemGuardian.path
path.parent match {
case guard ⇒ Await.result(guardian ? StopChild(actor), timeout.duration) <--- NO PLEASE
case sys ⇒ Await.result(systemGuardian ? StopChild(actor), timeout.duration) <--- NO PLEASE
case _ ⇒ actor.asInstanceOf[InternalActorRef].stop()
}
}
Leave a comment
on 2012-06-12 03:47 *
By viktorklang
That a signal has been raised. It ties into http://www.assembla.com/spaces/akka/tickets/1478
Fixed in wip-scala210M5-√
Updating tickets (#2186, #2187, #2189, #2192, #2196, #2197, #2198, #2200, #2203, #2208, #2212, #2217, #2218, #2221, #2224, #2225, #2226, #2227, #2228, #2232, #2236, #2237, #2247, #2248, #2255, #2257, #2260, #2262, #2268, #2269, #2272, #2276, #2285, #2288, #2292, #2294, #2295, #2298, #2301, #2302, #2312, #2315, #2318, #2319, #2332, #2333, #2335, #2337, #2340, #2341, #2342, #2345)