File tree 2 files changed +1
-15
lines changed
src/main/java/com/google/devtools/build/lib
2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ enum DynamicMode {
34
34
public String toString () {
35
35
return name ;
36
36
}
37
-
38
- public DynamicMode other () {
39
- return this == REMOTE ? LOCAL : REMOTE ;
40
- }
41
37
}
42
38
43
39
/**
Original file line number Diff line number Diff line change @@ -166,17 +166,7 @@ private static void stopBranch(
166
166
spawn .getMnemonic (), strategyThatCancelled .get ())));
167
167
}
168
168
169
- if (!branchToCancel .cancel (true )) {
170
- // This can happen if the other branch is local under local_lockfree and has returned
171
- // its result but not yet cancelled this branch, or if the other branch was already
172
- // cancelled for other reasons.
173
- if (!branchToCancel .isCancelled ()) {
174
- throw new DynamicInterruptedException (
175
- String .format (
176
- "Execution of %s strategy stopped because %s strategy could not be cancelled" ,
177
- cancellingStrategy , cancellingStrategy .other ()));
178
- }
179
- }
169
+ branchToCancel .cancel (true );
180
170
branchDone .acquire ();
181
171
} else {
182
172
throw new DynamicInterruptedException (
You can’t perform that action at this time.
0 commit comments