diff options
-rw-r--r-- | lib/block_handlers.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/block_handlers.cpp b/lib/block_handlers.cpp index ab32300..95d4b8b 100644 --- a/lib/block_handlers.cpp +++ b/lib/block_handlers.cpp @@ -107,4 +107,16 @@ void ElementImpl::topology_update(const tsbe::TaskInterface &task_iface, const t { this->mark_done(task_iface); } + + //TODO: think more about this: + if (num_inputs == 0 and num_outputs == 0) + { + this->mark_done(task_iface); + } + + //TODO: generate a message to handle task in a loop for a while + //we may need to call it into exhaustion to be correct + //but dont call it from update, let the settings above sink in + this->handle_task(task_iface); + this->handle_task(task_iface); } |