From 5beae3eac479c20f147cb36972f10959942e38ae Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 15 Sep 2013 23:25:52 +0200 Subject: typo --- pyload/plugins/Addon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/plugins') 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: -- cgit v1.2.3