diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp index 29246915b46..b8f5ec9bcf3 100644 --- a/Kernel/Thread.cpp +++ b/Kernel/Thread.cpp @@ -246,7 +246,6 @@ void Thread::die_if_needed() [[maybe_unused]] auto rc = unlock_process_if_locked(unlock_count); ScopedCritical critical; - set_should_die(); // Flag a context switch. Because we're in a critical section, // Scheduler::yield will actually only mark a pending scontext switch