diff --git a/commands2/sequentialcommandgroup.py b/commands2/sequentialcommandgroup.py index e7ecbf7..256b079 100644 --- a/commands2/sequentialcommandgroup.py +++ b/commands2/sequentialcommandgroup.py @@ -86,7 +86,7 @@ def end(self, interrupted: bool): self._currentCommandIndex = -1 def isFinished(self) -> bool: - return self._currentCommandIndex == len(self._commands) + return self._currentCommandIndex == len(self._commands) or self._currentCommandIndex == -1 def runsWhenDisabled(self) -> bool: return self._runsWhenDisabled