diff options
author | Walter Purcaro <vuolter@gmail.com> | 2013-09-15 23:25:52 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2013-11-16 17:40:13 +0100 |
commit | 5beae3eac479c20f147cb36972f10959942e38ae (patch) | |
tree | d1befb29b07c9fa07f84694bd2c4e817cbf0bf7b /pyload/plugins | |
parent | startPeriodical + setInterval methods (diff) | |
download | pyload-5beae3eac479c20f147cb36972f10959942e38ae.tar.xz |
typo
Diffstat (limited to 'pyload/plugins')
-rw-r--r-- | pyload/plugins/Addon.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugins/Addon.py b/pyload/plugins/Addon.py index 30442423d..60243a8bd 100644 --- a/pyload/plugins/Addon.py +++ b/pyload/plugins/Addon.py @@ -108,11 +108,11 @@ class Addon(Base): self.init() def startPeriodical(self, interval=self.interval, wait=0): - if self.cb or not self.setInterval(interval): - return False - else: + if not self.cb and self.setInterval(interval): self.cb = self.core.scheduler.addJob(wait, self._periodical, threaded=False) return interval + else: + return False def stopPeriodical(self): if not self.cb: |