mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Testing update/restart fix
This commit is contained in:
parent
23e2a483b5
commit
4676c2b7b1
2 changed files with 9 additions and 8 deletions
|
@ -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 a new issue