Skip to content

Commit 2916ba5

Browse files
authored
Resolve hang in failure scenario (#373)
1 parent 9da2b86 commit 2916ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/spring-shell/src/main/java/org/springframework/sbm/shell/renderer/RecipeProgressRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public synchronized void finishAction() {
122122

123123

124124
public synchronized void failProcess() {
125-
while (!stepsDeque.isEmpty()) {
125+
if (!stepsDeque.isEmpty()) {
126126
if (stepsDeque.peek().getClass().isAssignableFrom(ProcessStep.class)) {
127127
String fail = ((ProcessStep) stepsDeque.pop()).fail();
128128
printer.printAndNewLine(fail);

0 commit comments

Comments
 (0)