summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 47853d686a..43404a91ab 100644
--- a/eval.c
+++ b/eval.c
@@ -8450,7 +8450,6 @@ rb_thread_schedule()
rb_thread_t curr;
int found = 0;
- if (ruby_in_compile) abort();
fd_set readfds;
fd_set writefds;
fd_set exceptfds;
@@ -8460,6 +8459,8 @@ rb_thread_schedule()
int need_select = 0;
int select_timeout = 0;
+ if (ruby_in_compile) abort();
+
rb_thread_pending = 0;
if (curr_thread == curr_thread->next
&& curr_thread->status == THREAD_RUNNABLE)