diff --git a/kernel/tasks.c b/kernel/tasks.c index 73fbadca..69514755 100644 --- a/kernel/tasks.c +++ b/kernel/tasks.c @@ -155,7 +155,7 @@ task_t* get_new_task(void) /* signalize that this task could be reuse */ if (current_task->status == TASK_FINISHED) { - current_task = TASK_INVALID; + current_task->status = TASK_INVALID; /* wake up blocked tasks */ for(i=0; i