From c8def6677d2982391ec513cb6eab111885d76a72 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 14 Oct 2016 11:36:10 +0200 Subject: [PATCH] fix(script): Dispatch subthread on setup Closes jaagr/lemonbuddy#77 --- include/modules/script.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/modules/script.hpp b/include/modules/script.hpp index 6ac80c4b..478e9cb5 100644 --- a/include/modules/script.hpp +++ b/include/modules/script.hpp @@ -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() {