commit fc243835c975a6cb9b3f99cba9b4b37d73181d37
parent 02351e1ab48f9faf1d0153ce9d4c21617cf6c174
Author: Joris Vink <joris@coders.se>
Date: Mon, 9 Dec 2013 11:42:22 +0100
Update last_cb_run after we call cb here as well
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kore.c b/src/kore.c
@@ -260,8 +260,8 @@ kore_server_start(void)
if (kore_cb != NULL && kore_cb_worker == -1) {
now = kore_time_ms();
if ((now - last_cb_run) >= kore_cb_interval) {
- last_cb_run = now;
kore_cb();
+ last_cb_run = now;
}
}