diff options
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1271,10 +1271,10 @@ sleep_timespec(rb_thread_t *th, struct timespec ts, unsigned int fl) while (th->status == THREAD_STOPPED) { native_sleep(th, &ts); RUBY_VM_CHECK_INTS_BLOCKING(th->ec); - if (timespec_update_expire(&ts, &end)) - break; if (!(fl & SLEEP_SPURIOUS_CHECK)) break; + if (timespec_update_expire(&ts, &end)) + break; } th->status = prev_status; } |