Skip to content

Commit ca55381

Browse files
committed
omit population from the repeat loop
1 parent e5100a6 commit ca55381

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/kotlin/com/lambda/interaction/request/breaking/BreakManager.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,12 @@ object BreakManager : RequestHandler<BreakRequest>(
315315
* @see updateBreakProgress
316316
*/
317317
private fun SafeContext.processRequest(breakRequest: BreakRequest?) {
318+
breakRequest?.let { request ->
319+
if (request.fresh) populateFrom(request)
320+
}
321+
318322
repeat(2) {
319323
breakRequest?.let { request ->
320-
if (request.fresh) populateFrom(request)
321324
if (performInstantBreaks(request)) {
322325
processNewBreaks(request)
323326
}

0 commit comments

Comments
 (0)