!
This commit is contained in:
Viktor Klang 2011-11-14 19:25:24 +01:00
parent 66dd0123bc
commit afe1e37648

View file

@ -236,7 +236,7 @@ abstract class MessageDispatcher(val app: ActorSystem) extends Serializable {
shutdownSchedule = SCHEDULED
app.scheduler.scheduleOnce(this, timeoutMs, TimeUnit.MILLISECONDS)
case SCHEDULED
if (_tasks.get == 0) {
if (_tasks.get == 0 && _actors.get() == 0) {
active switchOff {
shutdown() // shut down in the dispatcher's references is zero
}