From 932bd8dfcbacecf8fe5b07abd50eced018c50355 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 9 Oct 2010 10:03:21 +0200 Subject: [PATCH] init: emit timeout instead of forced update --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 51d3131..a65adab 100644 --- a/init.lua +++ b/init.lua @@ -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