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: