diff --git a/couchpotato/core/_base/_core/main.py b/couchpotato/core/_base/_core/main.py index 2e5bc84..58bd1d1 100644 --- a/couchpotato/core/_base/_core/main.py +++ b/couchpotato/core/_base/_core/main.py @@ -18,7 +18,10 @@ log = CPLog(__name__) class Core(Plugin): - ignore_restart = ['Core.restart', 'Core.shutdown', 'Updater.check'] + ignore_restart = [ + 'Core.restart', 'Core.shutdown', + 'Updater.check', 'Updater.autoUpdate', + ] shutdown_started = False def __init__(self): diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index 3717b90..1ecb6b4 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -66,6 +66,10 @@ class Updater(Plugin): fireEventAsync('app.restart') + return True + + return False + def check(self): if self.isDisabled(): return @@ -171,7 +175,6 @@ class GitUpdater(BaseUpdater): self.repo.saveStash() log.info('Updating to latest version') - info = self.info() self.repo.pull() # Delete leftover .pyc files