1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Fix for force update.

This commit is contained in:
echel0n 2014-06-18 02:04:02 -07:00
parent cf4cbd9a34
commit c9f800128e

View File

@ -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: