scheduler: Minor bug fix

This commit is contained in:
2026-06-04 13:38:03 +02:00
parent f61bb93a22
commit ce51e82363
+1 -1
View File
@@ -335,7 +335,7 @@ pub fn wait(self: *Scheduler, ids: []const TaskID) !TaskID {
return c.id;
}
const task = self.findTaskByID(self.current_id.?);
const task = self.findTaskByID(self.current_id.?).?;
task.state = .blocked;
task.wakeup_time = null;
task.wakeup_tasks = ids;