We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb3436 commit 630e9ceCopy full SHA for 630e9ce
maps-sdk/src/main/java/com/mapbox/maps/renderer/MapboxRenderThread.kt
@@ -146,8 +146,11 @@ internal class MapboxRenderThread : Choreographer.FrameCallback {
146
private inline fun trace(sectionName: String, section: (() -> Unit)) {
147
if (MapboxTracing.platformTracingEnabled) {
148
Trace.beginSection("$MAPBOX_TRACE_ID: $sectionName")
149
- section.invoke()
150
- Trace.endSection()
+ try {
+ section.invoke()
151
+ } finally {
152
+ Trace.endSection()
153
+ }
154
} else {
155
section.invoke()
156
}
0 commit comments