summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-08 12:45:47 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-08 12:45:47 +0200
commita9d650dcde43c0facf7341fa0fc8b215412cd298 (patch)
treed3cfade929437b8556ab6da0319e53e9dc3832f6 /module/plugins/internal/Account.py
parentFixpack (5) (diff)
downloadpyload-a9d650dcde43c0facf7341fa0fc8b215412cd298.tar.xz
Fix https://github.com/pyload/pyload/issues/1975
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r--module/plugins/internal/Account.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index 20ecf6afd..8ef8ee305 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -13,7 +13,7 @@ from module.utils import compare_time, lock
class Account(Plugin):
__name__ = "Account"
__type__ = "account"
- __version__ = "0.57"
+ __version__ = "0.58"
__status__ = "testing"
__description__ = """Base account plugin"""
@@ -64,11 +64,11 @@ class Account(Plugin):
return True
- def start_periodical(self, interval=None, threaded=False, delay=0):
+ def start_periodical(self, interval=None, threaded=False, delay=None):
if interval is not None and self.set_interval(interval) is False:
return False
else:
- self.cb = self.pyload.scheduler.addJob(max(0, delay), self._periodical, [threaded], threaded=threaded)
+ self.cb = self.pyload.scheduler.addJob(max(1, delay), self._periodical, [threaded], threaded=threaded)
return True
@@ -91,7 +91,7 @@ class Account(Plugin):
except Exception, e:
self.log_error(_("Error executing periodical task: %s") % e, trace=True)
- self.restart_periodical(self.interval, threaded)
+ self.restart_periodical(threaded=threaded, delay=self.interval)
def periodical(self):