fix(script): Dispatch subthread on setup

Closes jaagr/lemonbuddy#77
This commit is contained in:
Michael Carlberg 2016-10-14 11:36:10 +02:00
parent 6f286055c5
commit c8def6677d

View File

@ -36,15 +36,12 @@ namespace modules {
// Add formats and elements
m_formatter->add(DEFAULT_FORMAT, TAG_OUTPUT, {TAG_OUTPUT});
}
void start() {
timer_module::start();
// Start a subthread tailing the script
if (m_tail) {
if (m_tail)
dispatch_tailscript_runner();
}
}
bool update() {
m_output.clear();