Merge pull request #1287 from akka/wip-2970-lightweight-ec-form-promiseactorref-√

#2970 - Removing scheduler and dispatcher from ARP and reimplementing P...
This commit is contained in:
Viktor Klang (√) 2013-04-03 11:23:54 -07:00
commit 641e499cc4
15 changed files with 69 additions and 88 deletions

View file

@ -464,7 +464,7 @@ private[remote] class EndpointManager(conf: Config, log: LoggingAdapter) extends
// Shutdown all endpoints and signal to sender when ready (and whether all endpoints were shut down gracefully)
val sys = context.system // Avoid closing over context
Future sequence endpoints.allEndpoints.map {
gracefulStop(_, settings.FlushWait, EndpointWriter.FlushAndStop)(sys)
gracefulStop(_, settings.FlushWait, EndpointWriter.FlushAndStop)
} map { _.foldLeft(true) { _ && _ } } pipeTo sender
// Ignore all other writes
context.become(flushing)