Skip to content

Commit f7d8315

Browse files
committed
close always set isRunning to false
1 parent 9bf4a81 commit f7d8315

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/AndroidTransactionProfiler.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,10 @@ public void close() {
306306
true,
307307
null,
308308
ScopesAdapter.getInstance().getOptions());
309-
} else if (isRunning.get()) {
310-
// in case the app start profiling is running, and it's not bound to a transaction, we still
311-
// stop profiling, but we also have to manually update the flag.
312-
isRunning.set(false);
313309
}
310+
// in case the app start profiling is running, and it's not bound to a transaction, we still
311+
// stop profiling, but we also have to manually update the flag.
312+
isRunning.set(false);
314313

315314
// we have to first stop profiling otherwise we would lost the last profile
316315
if (profiler != null) {

0 commit comments

Comments
 (0)