1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

allow timer_add from cb

This commit is contained in:
Christian Giese
2023-07-13 20:57:38 +00:00
parent 3353ea80dd
commit 3e1011253b

View File

@@ -550,13 +550,13 @@ timer_walk(timer_root_s *root)
LOG(TIMER_DETAIL, " Firing %s timer\n", timer->name);
#endif
}
if(timer->periodic) {
/* Periodic timers are simple de-queued and
* re-inserted at the tail of this buckets queue. */
timer_change(timer);
} else {
/* Everything else gets deleted. */
} else if(timer->expired) {
/* Timers restarted in callback will not be expired anymore.
* Those timer gets deleted. */
timer_del(timer);
}
}