logical fix

This commit is contained in:
Vyacheslav Boyko 2022-07-12 23:09:04 +03:00
parent 9fb2276ac1
commit 192fb69677

View File

@ -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 {