diff --git a/src/scheduler/task.rs b/src/scheduler/task.rs index d20ee44ed072410a3f5f82656a653021c3be1783..1fd3da87f65b79738b2ce7436b2960f26f2d317e 100644 --- a/src/scheduler/task.rs +++ b/src/scheduler/task.rs @@ -562,13 +562,9 @@ impl BlockedTaskQueue { cursor.move_next(); } - - // No, then just insert it at the end of the list. - self.list.push_back(new_node); - } else { - // No, then just insert it at the end of the list. - self.list.push_back(new_node); } + + self.list.push_back(new_node); } /// Manually wake up a blocked task.