summaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-12-18 08:16:05 +0800
committerGitHub <[email protected]>2020-12-18 08:16:05 +0800
commit9971067f4934e7072cf446b5fcd19f4fa10be357 (patch)
treec8e2b45f386e6941d550d52b30424aff715e4eec /src/timer.c
parent932bbc29c63b7375bc46837b99ae6fda117a9ba0 (diff)
parent014105025a5c73a2aa58cd703ad157d29d5c6aff (diff)
Merge pull request #4112 from enkiller/1203-0940
[timer] Fix the bug that the linked list is still mounted when the si…
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c
index 4d021ab367..d882711151 100644
--- a/src/timer.c
+++ b/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))
{