diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-20 02:21:42 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-20 02:21:42 +0100 |
commit | 9f51c5d19860930b7f65e707f632d01dcd097c8b (patch) | |
tree | 6d16c022413f8f6778c92950cdfb36ae70c31894 /pyload/plugins | |
parent | Use utils encode/decode (diff) | |
download | pyload-9f51c5d19860930b7f65e707f632d01dcd097c8b.tar.xz |
[UpdateManager] Code cosmetics
Diffstat (limited to 'pyload/plugins')
-rw-r--r-- | pyload/plugins/internal/UpdateManager.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/plugins/internal/UpdateManager.py b/pyload/plugins/internal/UpdateManager.py index 7b2ab1524..626e62f4e 100644 --- a/pyload/plugins/internal/UpdateManager.py +++ b/pyload/plugins/internal/UpdateManager.py @@ -106,8 +106,10 @@ class UpdateManager(Addon): def periodical(self): - if not self.info['pyload'] and not (self.getConfig("nodebugupdate") and self.core.debug): - self.updateThread() + if self.info['pyload'] or self.getConfig("nodebugupdate") and self.core.debug: + return + + self.updateThread() def server_request(self): |