Fixing ticket 413

This commit is contained in:
Viktor Klang 2010-09-27 17:30:49 +02:00
parent e02744425d
commit fc77a138e7
2 changed files with 13 additions and 6 deletions

View file

@ -116,6 +116,10 @@ class ExecutorBasedEventDrivenDispatcher(
val started = if (isDeadlineEnabled) System.currentTimeMillis else 0
do {
nextMessage.invoke
if (nextMessage.receiver.isBeingRestarted)
return !self.isEmpty
if (throttle) { // Will be elided when false
processedMessages += 1
if ((processedMessages >= throughput) ||