Update last_cb_run after we call cb here as well

This commit is contained in:
Joris Vink 2013-12-09 11:42:22 +01:00
parent 02351e1ab4
commit fc243835c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}