From 94e01628f0dcb934cb4d4bdbbc00c704ede0665a Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Thu, 12 Aug 2010 13:39:20 +0200 Subject: [PATCH] Allow core threads to time out in dispatchers --- akka-core/src/main/scala/dispatch/ThreadPoolBuilder.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/akka-core/src/main/scala/dispatch/ThreadPoolBuilder.scala b/akka-core/src/main/scala/dispatch/ThreadPoolBuilder.scala index 55755250e2..6f8da64073 100644 --- a/akka-core/src/main/scala/dispatch/ThreadPoolBuilder.scala +++ b/akka-core/src/main/scala/dispatch/ThreadPoolBuilder.scala @@ -34,6 +34,7 @@ trait ThreadPoolBuilder { def buildThreadPool(): Unit = synchronized { ensureNotActive inProcessOfBuilding = false + threadPoolBuilder.allowCoreThreadTimeOut(true) if (boundedExecutorBound > 0) { val boundedExecutor = new BoundedExecutorDecorator(threadPoolBuilder, boundedExecutorBound) boundedExecutorBound = -1