Merge pull request #1991 from borwick/master

Task needs to be started if pause() was previously called
This commit is contained in:
Griatch 2019-12-16 18:53:33 +01:00 committed by GitHub
commit 9879d3af5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,9 +162,8 @@ class ScriptBase(ScriptDB, metaclass=TypeclassBase):
Start task runner.
"""
if self.ndb._task:
return
self.ndb._task = ExtendedLoopingCall(self._step_task)
if not self.ndb._task:
self.ndb._task = ExtendedLoopingCall(self._step_task)
if self.db._paused_time:
# the script was paused; restarting