X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/14cab4ebc3fd8b0e121c41653a55e516a977591a..a659d1a4bc99d27a1746985e13f68efc3dd256c7:/helpers.lua?ds=sidebyside diff --git a/helpers.lua b/helpers.lua index 8fb794c..309162e 100644 --- a/helpers.lua +++ b/helpers.lua @@ -93,9 +93,9 @@ function helpers.newtimer(_name, timeout, fun, nostart) local name = timeout if not helpers.timer_table[name] then helpers.timer_table[name] = capi.timer({ timeout = timeout }) + helpers.timer_table[name]:start() end helpers.timer_table[name]:connect_signal("timeout", fun) - helpers.timer_table[name]:start() if not nostart then helpers.timer_table[name]:emit_signal("timeout") end