summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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.