Update mrbgems/mruby-task/src/task.c

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
HASUMI Hitoshi
2026-02-13 14:34:34 +09:00
committed by GitHub
parent ee610cdbb6
commit 40d6e2e9a4
+2 -2
View File
@@ -460,9 +460,9 @@ mrb_task_run(mrb_state *mrb)
/* No task ready - check if all tasks are done */
if (!t) {
mrb_task_disable_irq();
mrb_bool exitting = !q_ready_ && !q_waiting_ && !q_suspended_;
mrb_bool exiting = !q_ready_ && !q_waiting_ && !q_suspended_;
mrb_task_enable_irq();
if (exitting) {
if (exiting) {
/* All tasks are dormant - scheduler done */
break;
}