Fix copy/paste error from 5bb5e706f1d310a467075630145d2cc277045765

This commit is contained in:
Benoit Daloze 2020-09-18 11:11:47 +02:00
parent 5bb5e706f1
commit af1926e859

View File

@ -34,7 +34,7 @@ sync_wakeup(struct list_head *head, long max)
} }
if (cur->th->status != THREAD_KILLED) { if (cur->th->status != THREAD_KILLED) {
if (cur->th->scheduler != Qnil) { if (cur->th->scheduler == Qnil) {
rb_threadptr_interrupt(cur->th); rb_threadptr_interrupt(cur->th);
cur->th->status = THREAD_RUNNABLE; cur->th->status = THREAD_RUNNABLE;
} }