summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index b2cbda0128..34068b0300 100644
--- a/thread.c
+++ b/thread.c
@@ -1024,7 +1024,7 @@ rb_thread_schedule_rec(int sched_depth, unsigned long limits_us)
rb_thread_set_current(th);
thread_debug("rb_thread_schedule/switch done\n");
- if (!sched_depth && UNLIKELY(GET_THREAD()->interrupt_flag)) {
+ if (UNLIKELY(!sched_depth && GET_THREAD()->interrupt_flag)) {
rb_threadptr_execute_interrupts_rec(GET_THREAD(), sched_depth+1);
}
}