Skip to content

Commit

Permalink
TransitionalManager#transit(long, TransitionPath, TransitionalListene…
Browse files Browse the repository at this point in the history
…r): code fix
  • Loading branch information
pavly-gerges committed Aug 15, 2023
1 parent 53d8c00 commit 5a76e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build

bin

.idea

.vscode

apache-maven-3.9.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ public void transit(TransitionPath<I, O> transitionPath, TransitionListener<I, O
* @throws InterruptedException thrown if the application has interrupted the system during the latency period
*/
public void transit(long time, TransitionPath<I, O> transitionPath, TransitionListener<I, O> transitionListener) throws InterruptedException {
transit(time, transitionPath.getPresentState().getInput(), transitionListener);
assignNextState(transitionPath.getNextState());
transitionPath.removePresentState();
Thread.sleep(time);
transit(transitionPath, transitionListener);
}

/**
Expand Down

0 comments on commit 5a76e18

Please sign in to comment.