fix(android): single break in extend loop for detekt LoopWithTooManyJumpStatements
android / Build + lint + test (push) Successful in 3m52s

This commit is contained in:
2026-06-04 01:07:57 -04:00
parent 3085d6f409
commit d5437d517e
@@ -353,11 +353,13 @@ class OutputPickerController @Inject constructor(
)
var consecutiveFailures = 0
var succeeded = 0
var aborted = false
for ((i, ref) in tracks.withIndex()) {
if (aborted) break
if (activeUpnpHolder.active.value?.routeId != route.id) {
Timber.w("UPnP extend: cancelled at offset %d (route changed)", i)
break
}
aborted = true
} else {
val outcome = runCatching {
val token = streamTokens.mint(ref.id)
transport.addURIToQueue(
@@ -382,7 +384,8 @@ class OutputPickerController @Inject constructor(
"UPnP extend: aborting after %d consecutive failures",
consecutiveFailures,
)
break
aborted = true
}
}
}
}