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:
parent
cf4cbd9a34
commit
c9f800128e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user