Fixed the bug that prevented restarting a script more than once after unpausing. Resolves #1023.

This commit is contained in:
andrei-pmbcn 2016-08-28 18:26:09 +03:00 committed by Griatch
parent 6fbdc88a27
commit 97412b4169

View file

@ -395,6 +395,11 @@ class DefaultScript(ScriptBase):
# if this script was paused manually (by a direct call of pause),
# it cannot be automatically unpaused (e.g. by a @reload)
raise RuntimeError
# Ensure that the script is fully unpaused, so that future calls
# to unpause do not raise a RuntimeError
self.db._manual_pause = False
if self.db._paused_time:
# only unpause if previously paused
self.is_active = True