Skip to content

Commit 2d53892

Browse files
committed
Do halt from stop with continue
1 parent ea9eeb7 commit 2d53892

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/app/statemachine/change_continue.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ func (s *StateMachine) processChangeContinue(newState *state.State) (changes []*
2424
} else if newState.NextCommand != nil {
2525
log.Printf("Continue with next command: %v", *newState.NextCommand)
2626
changes = append(changes, s.newCommandChange(newState.NextCommand))
27-
} else if *newState.Command.Type != state.Command_STOP {
27+
} else if *newState.Command.Type != state.Command_HALT {
2828
log.Println("Halting the game as there is no known next command to continue with")
29-
// halt the game, if not in STOP.
30-
// Rational: After ball placement and no next command, halt the game to indicate that manual action is required
31-
// If in STOP, that was most likely triggered manually already and a suddenly halted game might be confusing and not intended
3229
changes = append(changes, s.newCommandChange(state.NewCommandNeutral(state.Command_HALT)))
3330
}
3431
return

0 commit comments

Comments
 (0)