1
0
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:
echel0n 2014-06-15 15:07:27 -07:00
parent 23e2a483b5
commit 4676c2b7b1
2 changed files with 9 additions and 8 deletions

View File

@ -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()

View File

@ -95,6 +95,7 @@ def initWebServer(options={}):
app = Application([],
debug=False,
gzip=True,
autoreload=True,
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=',
login_url='/login'
)