summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-04-03 16:05:35 -0700
committerPixel <pixel@nobis-crew.org>2012-04-03 16:05:35 -0700
commitb3a4daf5a8c99957ec1f46618eca562095ad1d3e (patch)
tree5f99e798fc8d8471d4a8d6e85a62f7b8b91870a4
parentb7c281e1d7c26d4414706d529862407d07e385c2 (diff)
Fixing a bug where we could have a stalled TaskMan with dead tasks pending ack from yielded tasks.
-rw-r--r--src/TaskMan.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TaskMan.cc b/src/TaskMan.cc
index 8fd6df5..5b8c534 100644
--- a/src/TaskMan.cc
+++ b/src/TaskMan.cc
@@ -230,7 +230,7 @@ int Balau::TaskMan::mainLoop() {
}
// if we begin that loop with any pending task, just don't loop, so we can add them immediately.
- if (!m_pendingAdd.isEmpty() || !yielded.empty())
+ if (!m_pendingAdd.isEmpty() || !yielded.empty() || !stopped.empty())
noWait = true;
// libev's event "loop". We always runs it once though.