diff options
| author | tangyuxin <[email protected]> | 2020-12-03 09:43:09 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2020-12-03 09:43:09 +0800 |
| commit | 014105025a5c73a2aa58cd703ad157d29d5c6aff (patch) | |
| tree | f126d4730c32c95b9fb3302bf545853887308dea | |
| parent | df3d4b7bc9cab6dcc0aaf87cd32bd67bb1531036 (diff) | |
[timer] Fix the bug that the linked list is still mounted when the single timer is not modified
| -rw-r--r-- | src/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c index 4b9003794c..fc8053e90e 100644 --- a/src/timer.c +++ b/src/timer.c @@ -579,7 +579,7 @@ void rt_timer_check(void) { continue; } - + rt_list_remove(&(t->row[RT_TIMER_SKIP_LIST_LEVEL - 1])); if ((t->parent.flag & RT_TIMER_FLAG_PERIODIC) && (t->parent.flag & RT_TIMER_FLAG_ACTIVATED)) { @@ -667,7 +667,7 @@ void rt_soft_timer_check(void) { continue; } - + rt_list_remove(&(t->row[RT_TIMER_SKIP_LIST_LEVEL - 1])); if ((t->parent.flag & RT_TIMER_FLAG_PERIODIC) && (t->parent.flag & RT_TIMER_FLAG_ACTIVATED)) { |
