Skip to content

Commit

Permalink
ups
Browse files Browse the repository at this point in the history
  • Loading branch information
1198159 committed Mar 23, 2021
1 parent 42be90f commit 1b8a08f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ public void runCommands() {
*/
@Override
public boolean isFinished() {
if (getCurrentCommand().commandState == CommandState.RESET && getCurrentCommand() != null) {
currentCommandIndex++;
if (getCurrentCommand() != null) {
if (getCurrentCommand().commandState == CommandState.RESET) {
currentCommandIndex++;
}
return currentCommandIndex > commands.length - 1;
}
return currentCommandIndex > commands.length-1;
return true;
}

/** Get the command being currently run
Expand Down

0 comments on commit 1b8a08f

Please sign in to comment.