summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Addon.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:15:41 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:15:41 +0100
commit181ab47c5f775b8b48569361da6b88a801784a30 (patch)
treef5f6d1d6b75b7f21b89b33733c3536e5ca80e087 /pyload/plugin/Addon.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-181ab47c5f775b8b48569361da6b88a801784a30.tar.xz
Cleanup
Diffstat (limited to 'pyload/plugin/Addon.py')
-rw-r--r--pyload/plugin/Addon.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyload/plugin/Addon.py b/pyload/plugin/Addon.py
index dc07a2513..14b5ee2a5 100644
--- a/pyload/plugin/Addon.py
+++ b/pyload/plugin/Addon.py
@@ -76,11 +76,9 @@ class Addon(Base):
self.setup()
- # self.initPeriodical()
-
def initPeriodical(self, delay=0, threaded=False):
- self.cb = self.core.scheduler.addJob(delay, self._periodical, args=[threaded], threaded=threaded)
+ self.cb = self.core.scheduler.addJob(max(0, delay), self._periodical, args=[threaded], threaded=threaded)
def _periodical(self, threaded):