Kernel: Make schedler not crash when unblocking active thread

This was happening when sending signals to processes that were currently
running.
This commit is contained in:
Bananymous 2024-08-01 17:19:30 +03:00
parent 6de350ce9d
commit 4599e1dec5
1 changed files with 2 additions and 1 deletions

View File

@ -328,7 +328,8 @@ namespace Kernel
if (node->processor_id == Processor::current_id())
{
ASSERT(node->blocked);
if (!node->blocked)
return;
m_block_queue.remove_node(node);
if (node->blocker)
node->blocker->remove_blocked_thread(node);