From 102a0177de781cefda9878b1589f70b96473d41c Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 16 Sep 2012 12:34:24 +0200 Subject: [PATCH] Only use desktop updater callback on done and error --- couchpotato/core/_base/updater/main.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index 3ddec1f..fabc459 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -383,11 +383,6 @@ class SourceUpdater(BaseUpdater): class DesktopUpdater(BaseUpdater): - version = None - update_failed = False - update_version = None - last_check = 0 - def __init__(self): self.desktop = Env.get('desktop') @@ -396,7 +391,7 @@ class DesktopUpdater(BaseUpdater): def do_restart(e): if e['status'] == 'done': fireEventAsync('app.restart') - else: + elif e['status'] == 'error': log.error('Failed updating desktop: %s', e['exception']) self.update_failed = True