diff --git a/source/lib/omnitrace/library/components/roctracer.cpp b/source/lib/omnitrace/library/components/roctracer.cpp index 381508955..a419e46dc 100644 --- a/source/lib/omnitrace/library/components/roctracer.cpp +++ b/source/lib/omnitrace/library/components/roctracer.cpp @@ -314,12 +314,7 @@ void roctracer::shutdown() { auto_lock_t _lk{ type_mutex() }; - if(!roctracer_is_setup()) - { - if(!roctracer_is_init() && tim::storage::instance()) - tim::storage::instance()->reset(); - return; - } + if(!roctracer_is_setup()) return; roctracer_is_setup() = false;