diff options
-rw-r--r-- | daemon.py | 3 | ||||
-rw-r--r-- | server/handlers.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -3,7 +3,10 @@ if __name__ == '__main__': import os + import signal import logging logging.basicConfig(filename=os.environ.get('CODEQ_SERVER_LOG') or 'codeq-server.log', level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s') import server + + signal.signal(signal.SIGCHLD, signal.SIG_IGN) server.socket.serve_forever() diff --git a/server/handlers.py b/server/handlers.py index a7e0fef..a1bfbd7 100644 --- a/server/handlers.py +++ b/server/handlers.py @@ -100,7 +100,7 @@ class Settings(CodeqService): request.reply({'code': 1, 'message': 'New settings not provided'}) else: try: - request.user_session.update_settings(settings) + request.session.update_settings(settings) request.session.write_settings_to_db() except NoSuchSession: request.reply({'code': 2, 'message': 'No such session'}) |