1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 18:47:23 +00:00
This commit is contained in:
OzzieIsaacs 2018-09-08 14:58:00 +02:00
parent a5d15a19de
commit 919de60e8d

View File

@ -1739,7 +1739,6 @@ def shutdown():
db.engine.dispose()
ub.session.close()
ub.engine.dispose()
# stop gevent server
showtext = {}
if task == 0:
@ -1748,6 +1747,7 @@ def shutdown():
else:
showtext['text'] = _(u'Performing shutdown of server, please close window')
server.Server.setRestartTyp(False)
# stop gevent/tornado server
server.Server.stopServer()
return json.dumps(showtext)
else:
@ -2750,8 +2750,8 @@ def view_configuration():
config.loadSettings()
if reboot_required:
# db.engine.dispose() # ToDo verify correct
ub.session.close()
ub.engine.dispose()
# ub.session.close()
# ub.engine.dispose()
# stop Server
server.Server.setRestartTyp(True)
server.Server.stopServer()