Commit 11331ea
fix(profiling): Move shouldStop reset inside !isRunning() guard
shouldStop = false was unconditionally set at the top of startProfiler,
which could cancel a pending stop if startProfiler was called on an
early-return path (e.g. MANUAL while already running). Move the reset
to inside the !isRunning() block so it only triggers when the profiler
is actually about to start.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 85e54fc commit 11331ea
File tree
1 file changed
+1
-1
lines changed- sentry-android-core/src/main/java/io/sentry/android/core
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments