Skip to content

Commit f076dd9

Browse files
committed
Do not cancel timeout on new fouls
1 parent 0592e74 commit f076dd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/app/statemachine/change_gameevent.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ func (s *StateMachine) processChangeAddGameEvent(newState *state.State, change *
265265
// stop the game if needed
266266
if *newState.Command.Type != state.Command_STOP &&
267267
*newState.Command.Type != state.Command_HALT &&
268+
*newState.Command.Type != state.Command_TIMEOUT &&
268269
stopsTheGame(*gameEvent.Type) {
269270
log.Printf("Stopping the game for event %v", *gameEvent.Type)
270271
changes = append(changes, createCommandChange(state.NewCommandNeutral(state.Command_STOP)))

0 commit comments

Comments
 (0)