From 9f51c5d19860930b7f65e707f632d01dcd097c8b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 20 Nov 2014 02:21:42 +0100 Subject: [UpdateManager] Code cosmetics --- pyload/plugins/internal/UpdateManager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyload/plugins/internal/UpdateManager.py') 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): -- cgit v1.2.3