diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-09 10:03:21 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-09 10:03:21 +0200 |
commit | 932bd8dfcbacecf8fe5b07abd50eced018c50355 (patch) | |
tree | 795024965553e34f4eaaa357b8aa456af45ce1f6 /init.lua | |
parent | fbd2af7b15094bb17ceb9e7941780a3f82d6a728 (diff) | |
download | vicious-legacy-932bd8dfcbacecf8fe5b07abd50eced018c50355.tar.xz |
init: emit timeout instead of forced update
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -119,6 +119,7 @@ local function regregister(reg) timers[reg.update] = { timer = capi.timer({ timeout = reg.timer }) } + local tm = timers[reg.update].timer if tm.connect_signal then tm:connect_signal("timeout", reg.update) @@ -126,10 +127,10 @@ local function regregister(reg) tm:add_signal("timeout", reg.update) end tm:start() - end - -- Initial update - reg.update() + -- Initial update + tm:emit_signal("timeout") + end reg.running = true end end |