summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 1d90375279..091e2ef7fa 100644
--- a/eval.c
+++ b/eval.c
@@ -5629,7 +5629,7 @@ thread_schedule()
/* raise fatal error to main thread */
thread_deadlock();
}
- if (next == curr_thread) {
+ if (next->status == THREAD_RUNNABLE && next == curr_thread) {
return;
}