diff options
-rw-r--r-- | src/LuaTask.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/LuaTask.cc b/src/LuaTask.cc index 754de6f..d722847 100644 --- a/src/LuaTask.cc +++ b/src/LuaTask.cc @@ -17,9 +17,8 @@ void Balau::LuaMainTask::Do() { waitFor(&m_queueEvent); LuaExecCell * cell; - while ((cell = m_queue.pop(false))) { - createTask(new LuaTask(L.thread(), cell)); - } + while ((cell = m_queue.pop(false))) + createTask(new LuaTask(L.thread(), cell), this); yield(); } |