X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5584f209717d743d8ca054bda83e67819366383a..a659d1a4bc99d27a1746985e13f68efc3dd256c7:/helpers.lua 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