From 919de60e8d7b6cf1ba59b4806ee8021cce74d254 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 8 Sep 2018 14:58:00 +0200 Subject: [PATCH] Final fix #615 --- cps/web.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/web.py b/cps/web.py index 3c0954f8..4ba2c35b 100644 --- a/cps/web.py +++ b/cps/web.py @@ -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()