File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
internal/app/statemachine Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments