Browse Source

Merge pull request #4112 from enkiller/1203-0940

[timer] Fix the bug that the linked list is still mounted when the si…
Bernard Xiong 4 years ago
parent
commit
9971067f49
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/timer.c

+ 2 - 2
src/timer.c

@@ -575,7 +575,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))
             {
@@ -663,7 +663,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))
             {