summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 5ba711c5c5..ab547a1d0a 100644
--- a/thread.c
+++ b/thread.c
@@ -4447,8 +4447,7 @@ call_trace_proc(VALUE args, int tracing)
ID id = 0;
VALUE klass = 0;
- if (p->event == RUBY_EVENT_C_CALL ||
- p->event == RUBY_EVENT_C_RETURN) {
+ if (p->klass != 0) {
id = p->id;
klass = p->klass;
}