diff --git a/src/prof_data.c b/src/prof_data.c index dfc507f9..723e579c 100644 --- a/src/prof_data.c +++ b/src/prof_data.c @@ -406,7 +406,7 @@ prof_lookup(tsd_t *tsd, prof_bt_t *bt) { prof_tctx_t * prof_tctx_create(tsd_t *tsd) { - if (tsd_reentrancy_level_get(tsd) > 0) { + if (!tsd_nominal(tsd) || tsd_reentrancy_level_get(tsd) > 0) { return NULL; }