From b3a4daf5a8c99957ec1f46618eca562095ad1d3e Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 3 Apr 2012 16:05:35 -0700 Subject: Fixing a bug where we could have a stalled TaskMan with dead tasks pending ack from yielded tasks. --- src/TaskMan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3