From c9f800128ef8e22c840b6c131b075d9c4cc63376 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 18 Jun 2014 02:04:02 -0700 Subject: [PATCH] Fix for force update. --- sickbeard/webserve.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 701606fb..93a4ea71 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -3277,14 +3277,12 @@ class Home(IndexHandler): if str(pid) != str(sickbeard.PID): self.redirect("/home/") - # auto-reload - tornado.autoreload.start(IOLoop.current()) - updated = sickbeard.versionCheckScheduler.action.update() # @UndefinedVariable - if updated: # do a hard restart - #threading.Timer(2, sickbeard.invoke_restart, [False]).start() + if not sickbeard.AUTO_UPDATE: + threading.Timer(2, sickbeard.invoke_restart, [False]).start() + t = PageTemplate(file="restart_bare.tmpl") return _munge(t) else: