diff options
Diffstat (limited to 'Kernel/Scheduler.cpp')
-rw-r--r-- | Kernel/Scheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index 10b1f899f8..978d889041 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -396,7 +396,7 @@ bool Scheduler::pick_next() auto* previous_head = runnable_list.first(); for (;;) { // Move head to tail. - runnable_list.append(*previous_head); + runnable_list.append(*runnable_list.first()); auto* thread = runnable_list.first(); if (!thread->process().is_being_inspected() && (thread->state() == Thread::Runnable || thread->state() == Thread::Running)) { |