Skip to content

Commit 199e42a

Browse files
committed
if the best build result is not break or place and the pending interactions list is not empty, return
1 parent 3cd9d15 commit 199e42a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/main/kotlin/com/lambda/task/tasks/BuildTask.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,14 @@ class BuildTask @Ta5kBuilder constructor(
107107
.sorted()
108108

109109
val bestResult = resultsNotBlocked.firstOrNull() ?: return@listen
110+
if (bestResult !is BuildResult.Contextual && pendingInteractions.isNotEmpty())
111+
return@listen
110112
when (bestResult) {
111113
is BuildResult.Done,
112114
is BuildResult.Ignored,
113115
is BuildResult.Unbreakable,
114116
is BuildResult.Restricted,
115117
is BuildResult.NoPermission -> {
116-
if (pendingInteractions.isNotEmpty()) return@listen
117118
if (blueprint is PropagatingBlueprint) {
118119
blueprint.next()
119120
return@listen

0 commit comments

Comments
 (0)