summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 96c74a66b4..e5f93e1408 100644
--- a/thread.c
+++ b/thread.c
@@ -463,7 +463,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
}
thread_cleanup_func(th);
if (th->vm->main_thread == th) {
- rb_thread_stop_timer_thread();
+ ruby_cleanup(state);
}
native_mutex_unlock(&th->vm->global_vm_lock);