diff --git a/components/sud.py b/components/sud.py index c7ea9df..93a66ca 100644 --- a/components/sud.py +++ b/components/sud.py @@ -140,13 +140,14 @@ class Sud(AttributeChange): } def start(self): - """Starts a fresh run from IDLE, or resumes a paused one - whichever - applies. No-op otherwise.""" + """Starts a fresh run from IDLE or DONE (i.e. restarts from the + beginning once a previous run has finished), or resumes a paused + one - whichever applies. No-op otherwise.""" if self.state == SudState.PAUSED: self.state = self._paused_from self._paused_from = None return - if self.state != SudState.IDLE: + if self.state not in (SudState.IDLE, SudState.DONE): return self.index = -1 self._advance()