mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
fix timer manager
This commit is contained in:
parent
9c9fb0e91b
commit
d3ba496a16
@ -143,7 +143,7 @@ static ret_t timer_manager_dispatch_one(timer_manager_t* timer_manager, uint64_t
|
||||
return_value_if_fail(timer != NULL, RET_BAD_PARAMS);
|
||||
|
||||
timer->now = now;
|
||||
if ((timer->start + timer->duration) <= now || now < timer->start) {
|
||||
if ((timer->start + timer->duration) <= now) {
|
||||
if (timer->on_timer(timer) != RET_REPEAT) {
|
||||
timer_manager_remove(timer_manager, timer->id);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user