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
1 changed files with 2 additions and 5 deletions

View File

@ -36,14 +36,11 @@ 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() {