mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-14 03:52:22 -05:00
Fix for force update.
This commit is contained in:
parent
cf4cbd9a34
commit
c9f800128e
@ -3277,14 +3277,12 @@ class Home(IndexHandler):
|
|||||||
if str(pid) != str(sickbeard.PID):
|
if str(pid) != str(sickbeard.PID):
|
||||||
self.redirect("/home/")
|
self.redirect("/home/")
|
||||||
|
|
||||||
# auto-reload
|
|
||||||
tornado.autoreload.start(IOLoop.current())
|
|
||||||
|
|
||||||
updated = sickbeard.versionCheckScheduler.action.update() # @UndefinedVariable
|
updated = sickbeard.versionCheckScheduler.action.update() # @UndefinedVariable
|
||||||
|
|
||||||
if updated:
|
if updated:
|
||||||
# do a hard restart
|
# 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")
|
t = PageTemplate(file="restart_bare.tmpl")
|
||||||
return _munge(t)
|
return _munge(t)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user