1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix copy/paste error from 5bb5e706f1

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;
} }