summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/sys/AggregateOutput.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/AggregateOutput.cpp b/cpp/src/qpid/sys/AggregateOutput.cpp
index d2c4b7185e..849e2bacfb 100644
--- a/cpp/src/qpid/sys/AggregateOutput.cpp
+++ b/cpp/src/qpid/sys/AggregateOutput.cpp
@@ -47,6 +47,7 @@ bool AggregateOutput::doOutput()
//loop until a task generated some output
while (!result) {
result = tasks[next++]->doOutput();
+ if (tasks.empty()) break;
if (next >= tasks.size()) next = next % tasks.size();
if (start == next) break;
}