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,14 +36,11 @@ namespace modules {
// Add formats and elements // Add formats and elements
m_formatter->add(DEFAULT_FORMAT, TAG_OUTPUT, {TAG_OUTPUT}); m_formatter->add(DEFAULT_FORMAT, TAG_OUTPUT, {TAG_OUTPUT});
}
void start() { // Start a subthread tailing the script
timer_module::start();
if (m_tail) { if (m_tail)
dispatch_tailscript_runner(); dispatch_tailscript_runner();
}
} }
bool update() { bool update() {