Skip to content

Commit 5b88415

Browse files
committed
[feature] Halt the game after reverting any protocol entries
1 parent 49921bb commit 5b88415

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/app/controller/engine.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,11 @@ func (e *Engine) processRevertProtocolEntry(id string) error {
494494
}
495495
e.GcState = e.PersistentState.CurrentState
496496
e.State = e.GcState.MatchState
497+
498+
if e.State.Command != CommandHalt {
499+
e.SendCommand(CommandHalt, "")
500+
}
501+
497502
log.Printf("Revert protocol entry %v", id)
498503
return nil
499504
}

0 commit comments

Comments
 (0)