mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Testing update/restart fix
This commit is contained in:
parent
23e2a483b5
commit
4676c2b7b1
@ -1293,14 +1293,14 @@ def saveAll():
|
||||
save_config()
|
||||
|
||||
def saveAndShutdown(restart=False):
|
||||
|
||||
logger.log('Shutting down tornado')
|
||||
try:
|
||||
IOLoop.current().stop()
|
||||
except RuntimeError:
|
||||
pass
|
||||
except:
|
||||
logger.log('Failed shutting down the server: %s' % traceback.format_exc(), logger.ERROR)
|
||||
if not restart:
|
||||
logger.log('Shutting down tornado')
|
||||
try:
|
||||
IOLoop.current().stop()
|
||||
except RuntimeError:
|
||||
pass
|
||||
except:
|
||||
logger.log('Failed shutting down the server: %s' % traceback.format_exc(), logger.ERROR)
|
||||
|
||||
halt()
|
||||
saveAll()
|
||||
|
@ -95,6 +95,7 @@ def initWebServer(options={}):
|
||||
app = Application([],
|
||||
debug=False,
|
||||
gzip=True,
|
||||
autoreload=True,
|
||||
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=',
|
||||
login_url='/login'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user