Commit 7a07a2c9 authored by Andrew Gaspar's avatar Andrew Gaspar
Browse files

Move check if instance is live after tid check

parent 41a16ab8
......@@ -83,12 +83,12 @@ void Plugin::InitializeInstance(int argc, char **argv) {
Plugin *Plugin::GetInstance() { return instance; }
int Plugin::GlobalEndOfExecution(Tau_plugin_event_end_of_execution_data_t *data) {
if (!instance) return 1;
if (data->tid != 0) {
return 1;
}
if (!instance) return 1;
auto result = GetInstance()->EndOfExecution(*data);
delete instance;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment