logical fix
This commit is contained in:
parent
9fb2276ac1
commit
192fb69677
@ -263,9 +263,9 @@ public class Fsm<T extends Fsm, E> {
|
||||
}
|
||||
|
||||
private void nextState(State<E> state, E event) {
|
||||
state.beforeEvent();
|
||||
previousState = currentState;
|
||||
currentState = state;
|
||||
currentState.beforeEvent();
|
||||
}
|
||||
|
||||
private void checkStateExist(String name) throws StateAlreadyExistsException {
|
||||
|
Loading…
Reference in New Issue
Block a user