summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 13d6dcb04d..35607db835 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1604,7 +1604,6 @@ rb_thread_create_timer_thread(void)
if (err != 0) {
rb_warn("pthread_attr_init failed for timer: %s, scheduling broken",
strerror(err));
- VM_ASSERT(err == 0);
return;
}
# ifdef PTHREAD_STACK_MIN
@@ -1673,6 +1672,7 @@ rb_thread_create_timer_thread(void)
else {
rb_warn("timer thread stack size: system default");
}
+ VM_ASSERT(err == 0);
#if USE_SLEEPY_TIMER_THREAD
CLOSE_INVALIDATE(normal[0]);
CLOSE_INVALIDATE(normal[1]);